New Card Visual Tutorial - Power BI (June 2023 Update)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone today I'm going to be walking you through the new card visual that was released with June 2023 power bi desktop this visual is honestly pretty awesome and in a single visual you can have multiple different elements now you you used to be able to do something like this with the multi-row card but because of the immense amount of formatting options that we've been given with this new visual we can achieve a lot of these different looks where we can have icons we can have line charts embedded directly within the visual and we can have a lot of formatting options that is completely customizable and interactive so I'm going to walk you through how to achieve these looks and let's get started so the only thing that you need in order to use this visual is to download the latest June 23 power bi desktop client so in the description you're going to find this simply just download it and that's it you just need to make sure that the version that you're downloading is at least the one from June 23. otherwise you won't have it once you have the new client what you need to do is nothing because usually what you would have to do is go to options and turn on preview features but this is one of the first items that was released with the preview feature for new card visual turned on what I'm going to do is I'm going to use the sample data set that I always use which is simply the finance financial data so skipping ahead couple seconds so now I've loaded the financial data and I created three new measures I've created the sum of profit the sum of sales and the sum of units sold pretty straightforward now let's try putting these into a visual once you throw it in Drag and Drop It usually just takes you to the card visual you just got to open up the visual types and it'll be this one right here the one that says card new and you select it and now you'll have the opportunity to put in more items so you can click on the add data and select other fields let's select profit and let's select unit sold so that's what it looks like and you are now able to see that we have multiple cards essentially within one visual itself let's change a couple things first let's take away the suffix or I mean the prefix of the measures and now we have a proper label and the actual values this is pretty cool so let's dive right into the actual formatting options which is what you can do if we go to the title yes you can have a title for the total visuals where you can have the title itself and you could have a subtitle turned on and it's pretty nice it works pretty great but most of the time I think you won't really need this so much because the cards themselves are pretty evident to what they need I don't I really don't think you need to use the title or the subtitle what's more interesting is when you get to the shape with the shape you can have the rectangle the rounded rectangle and then a snipped tab so a snip tab you can see is cut at the very top and the rounded rectangle is kind of circular and you can change how rounded you want the circles to be by switching around this parameter but you can also click customize style so once you you want to open this up you'll be able to select which Corners you want to be rounded I think this is really nice because you can you know to get different looks like this for example where it's like a little bit more like a leaf if you will or you might just want to go with one corner itself if you don't want it to be rounded you can also open up the customize style here where you can of course with the existing parameters change how big the top and the bottom Snips are to make a polygon if you world but you can also click on customize style so that specific Corners are being folded one thing that I did find is that if you have the top left corner folded and you try to fold the top right corner it works but if you just try to do the top right corner it actually doesn't fold until you fold the left corner so so that's a bug that I saw the next formatting option is the call out so the call out here applies to the text that you see inside so right now I'm going to change from 45 to size 20. and there what it's doing is it's making the visuals themselves a little bit more manageable I don't want the numbers to be you know it's like size 45 I don't even understand why that's the default setting perfectly honest but you can do a lot of things like you can you know it's like make them bold change the font colors and you can do some cool things where you can make the numbers themselves a little bit transparent you can make the alignment mid or do the right you can accept text wrap and also one thing that I think is pretty cool is that you can have display units but also have custom display units this is really interesting because this is essentially the same functionality as Dynamic format strings so if I wanted to do something like which I think is still pretty cool there's a position here in order for you to put in the format string that you'd like to see and of course an option is to if the value is blank you can have a default blank value here really really strong amounts of formatting already with just the values and we're going to move on with the label the label here is the value that you can put for the item that says sales profit or unit sold so this can actually be changed individually if you want sales and profit and unit sold to be something else you can absolutely do that if you want to have a context you can do that you can have it above or below the value pretty pretty nice and you can also do something like spacing what what's the distance between the two different text items pretty nice stuff one of the things I think is really great is you can select Series where it says apply series two and then for sales I can set the values or something directly my self so you can see that for sales I can change the color for example and for individual measures you can set the formatting as you like which is pretty cool then let's go to the layouts uh the layout here defines how the cards are positioned so if I click horizontal you can see it's you know a horizontal layout but if I click vertical for example you can see that you can have the cards like going top to bottom instead of side to side you can also select the grid so that gives you a couple of parameters but let's say I had two and two and now you have a grid section where it's a two by two within the visual itself and even if I don't have necessarily four cards to fill the space it will still do its best to try to fill the space I think this is really neat if I put in three by two you can see how the space is taking it up and it's a really nice way to just uh have full control over how you want the cards to be looking like let's go back to horizontal and now for the really really juicy stuff the cards here this option is probably the most uh significant in my opinion so the padding here one is usually set at normal but if you set wine you can see that there is probably a little bit of space from the edge of the card to what's inside so if you set it wide it goes a little bit more towards the center if you set it narrow it goes a little bit more towards the edge and if you set it to custom you can see what the padding looks like so let let me just put this here for two like 20 for example and you can see that the padding which is the the distance between the card and the text is a specific amount of you know it's like pixels I think this is really cool that you can like very easily select how it wants how you want it to be done and now let's go into these items here these are the really important ones where the power comes in so with fill you can set a specific color of the actual background but you can also set the color to be transparent now this is important because for example let's say I have gray or I have a great background and I want to put in an actual image I can do this I can select an image that I've created and I can make this into a background this is really nice but you might be able to see that just on the edges here there's like a gray area now if you want that to disappear you simply set the transparency all the way to 100 and now no more gray area of course you can see there's still a border and I can just turn that border off and now I have something that kind of looks like a very customized card already let's go through all of the other settings before I change change things around you can uh obviously you can turn on the border and the Border can become thicker or a different colored which is pretty cool I'm going to turn this border off for now and you can see also see that there is a shadow so the shadow doesn't work unless you have the border which is a little strange to me but let's say the Border it goes back to one now with the shadow you can select either outside or inside and you can see that there's a small Shadow inside or small Shadow outside and it can be from a specific Direction I think that's pretty cool it it's okay it's not something that you know it's like I think it's too you know it's like important but if you're trying to add depth you can absolutely do it this way you can turn on something called glow and glow is like where when you have a shadow inside and outside so it's kind of like a neon effect this is pretty cool if you're trying to do something like glass morphism but I'm not going to be showcasing that here oh you've got the accent bar and with an accent bar it's pretty nice because you can you know it's like set a specific accent you can set the color to be like whatever you'd like it to be it's like set the transparency once again pretty cool stuff you can you know it's like set it to the top or whichever direction you'd like it to be and I think this adds a nice aesthetic to the cards itself in my opinion the fact that the formatting includes an image is probably the strongest part of these cards this is how you can add icons this is how you can add different charts to these cards and I'm going to show you how there's two different ways that you can put in the images you can have a flat image file so I could choose to have a specific image and or I could have an image URL so an image URL is going to be just text that I can you know it's like input and an image itself is going to be a flat file if you select an image you can see that you know it's like this this is too big for the actual cards itself so the image can be a fit or a fill and if it's a fill it works a lot better it fits uh you know it's like filled into the size you can set the transparency you can set the position left right bottom or top it's a nice little piece of UI let's put it to the left all right you can also change the size directly so there is something here where it says 50 and now I'm changing that the pixel size to 150 and I think you can you know basically whatever you'd like with it it's really intuitive you know it's like try it out so if you select a specific series you can take the image and change it to be something else and let's go to unit sold and let's change that to this one and then I'm going to select all again and I'm going to make all of the sizes bigger let's copy and paste that and I'm going to remove the accent bar I'm going to go back to the remove the Border go back to the fill and I'm going to turn on the background image again I'm going to make this fit and I'm going to go back to the labels and make the colors White and there you have it a pretty important question is how did I make this background so the way that I'm doing is to use PowerPoint what I'm going to do is I made a shape and I put a gradient on the shape you can see how I did this in this other video of how I use PowerPoint to make Power bi backgrounds and I simply select the item and I right click and save as picture this will allow me to save it as a PNG or an SVG or something like that and once it's saved as an image I can you know take directly use that image in the background here and now we're going to go to the final part of the video where I'm going to show you how you can make sparklines in your charts using svgs I'm simply going to be using Kerry colosso's templates that she has on her website I'm going to link this in the description you've got to check this out you go to templates uh hit SVG templates and look for the item it says sparklines this is exactly the item that I'm going to use I'm going to Simply copy this code and we're going to repurpose it to be used in these new card visuals so let's go back here and I'm going to copy this paste it to here and we're going to create a new measure the new measure is going to be for sales so I'm going to call this sum of we'll just call this sales sparkline and you're going to be able to see that there is an x-axis which is already defined as the date column in the financials table and we're going to use the instead of the sum of gross sales and we're going to use the sum of sales and that's almost everything right now this uh you know it's like because this code was used for matrices you actually have to remove one condition to Simply if has one value that doesn't need to be for us we're going to remove this hit enter and then we're going to change the data category into image URL once we do this we can select the card visual once again select cards right now I have the sales series selected we're going to go to image remove the image that currently exists and set the image type to image URL I'm going to make the image URL a with a function and just look up sparkline and there you have it right now the positions on the left let's put it on the bottom and let's change the size to be to 250. maybe that was too big how about 200. all right so 200 here I'm just going to show you a little bit what you can do to alter a little bit of the um conditions here right now the sales sparkline the one that I copied is the flat color if you want to have the gradient you just scroll a little bit further down and you can see that there is a gradient sparkline as well so let's try making this one into a gradient once again so now change this and remove the condition and if we do this still image URL now you'll see there's a gradient there are certain things that I also think you can still fix for example there's a line at the very end which if you don't want to see all you need to do is you need to make sure that this item here the view box is just front down by one pixel and now there's no Edge line if you want the actual line itself to be a little bit thinner you can set the Str um The Stroke width here to be one for example and it this is just you know it's like HTML code to be used to create um an image and you can modify you know it's like this to be essentially however you want it to be let's take the sales sparkline and do it for the profit and for the unit sold so the final thing I'm going to show you is how to make this it to look like this final bottom row here and the way that we're going to do that is we're going to turn off not only everything else we're going to turn off the accent bar on the border and we're going to go to the card fill we're going to select a background image for the picture that we have uh okay so I did this for units sold but I need to do this for all series so I'm going to select background image to be this I'm going to set the value to be uh not fill but fit so that everything is enclosed within this area I'm going to make sure that the call out values are white and the last thing that I need to do is to make sure that in the actual code itself that you see here for the sparklines everything that is Navy I'm going to make to White let's do this everywhere and what this does has made everything White so that's all for today thanks for watching if you've stayed with me this far and I hope I've learned something take care goodbye
Info
Channel: Power BI Park
Views: 44,684
Rating: undefined out of 5
Keywords:
Id: jvwT1KS86dU
Channel Id: undefined
Length: 18min 23sec (1103 seconds)
Published: Wed Jun 14 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.