How can I create a multi-row card that dynamically adjusts based on the number of selected values

0 votes

How can I create a multi-row card that dynamically adjusts based on the number of selected values?
I need a multi-row card in Power BI that expands or contracts based on the number of selected values from a slicer. The card should dynamically adjust to display only the relevant information without unnecessary blank spaces. What is the best way to implement this using DAX or visual-level filters?

8 hours ago in Power BI by Evanjalin
• 19,960 points
6 views

1 answer to this question.

0 votes

To create a multi-row card in Power BI that dynamically adjusts based on the number of selected values, follow these steps:

1. Use a Measure to Count Selected Values

Create a DAX measure to count the number of selected values:

SelectedCount = COUNTROWS(VALUES(YourTable[Category]))  

2. Apply a Visual-Level Filter

  • Add the multi-row card visual and place the required field inside it.
  • Apply a visual-level filter to show data only when SelectedCount > 0.

3. Use a Dynamic Title or Message

  • To prevent blank spaces, create a message when no selection is made:
DisplayMessage =  
IF([SelectedCount] = 0, "No values selected", CONCATENATEX(VALUES(YourTable[Category]), YourTable[Category], ", "))
  • Add this measure as a title or card to improve user experience.

answered 8 hours ago by anonymous
• 19,960 points

Related Questions In Power BI

0 votes
0 answers
0 votes
2 answers

How do I create a Power BI visual that dynamically adjusts based on user-selected filters and slicers?

The application of slicers and filters in ...READ MORE

answered Jan 23 in Power BI by anonymous
• 16,900 points
141 views
0 votes
1 answer

How do I create a Power Query function that dynamically adjusts based on input parameters?

If you want to build a Power ...READ MORE

answered 5 days ago in Power BI by anonymous
• 19,960 points
43 views
0 votes
1 answer

How can I create a rolling calendar table that updates automatically based on the latest data in my fact table?

You can use either Power Query or ...READ MORE

answered 5 days ago in Power BI by anonymous
• 19,960 points
39 views
0 votes
1 answer

Install Power BI Desktop

It’s a pretty simple process. All you ...READ MORE

answered Oct 9, 2018 in Power BI by Kalgi
• 52,350 points
1,204 views
0 votes
1 answer

Few tips before I start creating Power BI dashboard

It’s always advisable to begin with the data ...READ MORE

answered Oct 9, 2018 in Power BI by Kalgi
• 52,350 points
1,020 views
0 votes
1 answer

How do I format the KPI in Power BI

format the KPI by selecting the paint ...READ MORE

answered Oct 9, 2018 in Power BI by Kalgi
• 52,350 points
1,366 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP