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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors