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
Anonymous
Not applicable

Slicer that shows two rows or values

Hi, when I create a slicer it has Good and Faulty. But I want the Faulty in the slicer to show only if there are two Faulty in its Product. Don't show if its only one Faulty. Any DAX help is appreciated

 

2020-09-29_222434.jpg

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Create this simple measure, put it in the table visual and set its value as 2 in the visual filter:

Count = COUNTROWS('Table')

count.png 

 

Best Regards,
Yingjie Li

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

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Create this simple measure, put it in the table visual and set its value as 2 in the visual filter:

Count = COUNTROWS('Table')

count.png 

 

Best Regards,
Yingjie Li

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

amitchandak
Super User
Super User

@Anonymous , Not very clear,

 

Use this measure with Product in a visual

countx(filter(summarize(Table, Table[Product],"_1", calculate(count(Table[Product]), Table[Condition] = "Faulty")),[_1] >1),[Product])

Anonymous
Not applicable

the slicer didnt work, below is another explanation, when I click on the Faulty, I want to see only those counts are two (exclude the one)

marc_hll_0-1601448489383.png

 

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.