Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
sjm21
New Member

Picklist values to filter count on cards

I would like to use multiple card visulations using the same field as a filter but for each card control to display different counts based on the filter and I'm struggling to work out how to do it.  The below is an example of what I would like it to look like.  Any assistance greatly appreciated!card control.png

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @sjm21 ,

 

For PowerBI, the value in a filter can only be displayed in a card visual. If you want to achieve the results you want, my suggestion is to create multiple slicers, use the edit interactions function, and specify the card visual corresponding to different slicers. The reference is as follows:

M_filter = 
var a = SELECTEDVALUE('Table'[Filter])
return
CALCULATE(MAX('Table'[Value]),'Table'[Filter]=a)

just like below:

vhenrykmstf_0-1631255701727.png

For more details, you can read related document:

Power BI - Edit Interactions features - Power BI Docs


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @sjm21 ,

 

For PowerBI, the value in a filter can only be displayed in a card visual. If you want to achieve the results you want, my suggestion is to create multiple slicers, use the edit interactions function, and specify the card visual corresponding to different slicers. The reference is as follows:

M_filter = 
var a = SELECTEDVALUE('Table'[Filter])
return
CALCULATE(MAX('Table'[Value]),'Table'[Filter]=a)

just like below:

vhenrykmstf_0-1631255701727.png

For more details, you can read related document:

Power BI - Edit Interactions features - Power BI Docs


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

selimovd
Super User
Super User

Hey @sjm21 ,

 

where exactly are you struggling?

You create a dimensional table on which you slice and this you connect to the fact table(s). This visuals you can use from the fact table and the slicer you use from the dimensional table.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.