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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

Slicer and Count

I am using below sample data

1) I want to show Module as drop down like below

2) I want to show ID count based on selected module like below

example If I select Module1 and Module2 then Count should show 1

 

Drop Down:

 

powerbiexpert22_1-1707455806721.png

 

 

 

 

Sample Data:

powerbiexpert22_0-1707455747446.png

 

When both Module1 and Module2 are selected : it should show ID count as 1 

 

powerbiexpert22_2-1707455899457.png

 

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@powerbiexpert22 , Unpivot the columns, you will modules on the row along with the value column( post rename)

 

New =

var _cnt = calculate(distinctcount(Table[Module]), allselected())

var _module = calculate(distinctcount(Table[Module]), filter(Table, Table[Value]=1))

return 

if(_cnt = _module , _module , blank())

 

 

And for Selected Values, All selected values are present: https://youtu.be/X5T4rIZovHk

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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