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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.