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
ashu710
Frequent Visitor

Number of Original and duplicates within a slicer date range

Hi Everyone, I wanted to display the number of occurrences within a slicer date range. For example, if I set the slicer says "01-01-2022" to "07-01-2022", the visual should mention "Original Values: 3", "Duplicate Values: 4". Thanks for the help.

 

ashu710_1-1642505604531.png

 

 

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @ashu710 ,

 

Use measures like this:

_originalValues = DISTINCTCOUNT(yourTable[valuesColumn])

_duplicateValues = COUNTROWS(yourTable) - [_originalValues]

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @ashu710 ,

 

Use measures like this:

_originalValues = DISTINCTCOUNT(yourTable[valuesColumn])

_duplicateValues = COUNTROWS(yourTable) - [_originalValues]

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Hi @BA_Pete  thanks for your help. What if I want to use the slicer for Original Or Duplicate values? This is because there's some data associated with them as well. Thank you.

 

Ashu

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.

Top Solution Authors