cancel
Showing results for 
Search instead for 
Did you mean: 
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

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

ashu710
Frequent Visitor

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors