Create card visualizations
APPLIES TO: ✔️ Power BI Desktop ✔️ Power BI service
Sometimes a single number is the most important thing you want to track in your Power BI dashboard or report, such as total sales, market share year over year, or total opportunities. This type of visualization is called a Card. As with almost all of the native Power BI visualizations, Cards can be created using the report editor or Q&A.
Note
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report is saved in Premium capacity.
Prerequisite
This tutorial uses the Retail Analysis Sample PBIX file
From the upper left section of the menubar, select File > Open report
Find your copy of the Retail Analysis Sample PBIX file
Open the Retail Analysis Sample PBIX file in report view
.Select
to add a new page.
Option 1: Create a card using the report editor
The first method to create a card is to use the report editor in Power BI Desktop.
Start on a blank report page and select the Store > Open Store Count field.
Power BI creates a column chart with the one number.
In the Visualizations pane, select the card icon.
You have now successfully created a card with the report editor. Below is the second option for creating a card using the Q&A question box.
Option 2: Create a card from the Q&A question box
The Q&A question box is another option for you to use when creating a card. The Q&A question box is available in Power BI Desktop report view.
Start on a blank report page
In the Visualizations pane, select the Q&A icon.
Power BI creates a Q&A visualization with a box for you to "Ask a question about your data".
For example, type "Total Sales for Tina" in the question box.
The question box helps you with suggestions and restatements. At this point, the entire TotalSales number is displayed until you further qualify it and select Total Sales for Tina Lassila (store DM).
Select the icon to the right of the question box to convert the Q&A visualization to a card visualization.
Power BI makes the conversion. Notice that the card icon is now highlighted in the Visualizations pane.
You have now successfully created a card with the Q&A question box. Below are steps for formatting your card to your specific needs.
Format a card
You have many options for changing labels, text, color and more. The best way to learn is to create a card and then explore the Formatting pane. Here are just a few of the formatting options available.
The Formatting pane is available when interacting with the card in a report.
Start by selecting the paint roller icon to open the Formatting pane.
With the card selected, expand Data label and change the Color, Text size, and Font family. If you had thousands of stores, you could use Display units to show the number of stores by thousands and control the decimal places as well. For example, 125.8K instead of 125,832.00.
Expand Category label and change the Color, Text size, and Font family.
Expand Background and move the slider to On. Now you can change the background Color and Transparency.
Continue to explore the formatting options until your card is exactly how you'd like it.
Considerations and troubleshooting
If you do not see a question box at all, contact your Power BI admin.
Next steps
Maklum balas
Kirim dan lihat maklum balas untuk