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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sv98917n
Helper I
Helper I

Show Duplicates With Respect To Page Slicer

Hello PowerBI Community, 

 

I am currently facing an issue with my duplicate ID flag. While the DAX flag works for the whole report, it does not show values in accordance with my [created_date] date slicer. Yes, I do have a page level filter, but it does not change the DAX responces. So when I select a date range based on the created date, it says "Yes" to values that are duplictaes for the whole report range, but not the sliced range. 

 

This is my duplicate flag. I need something that incorprates the slicer based on [created_date]. Any help would be greatly appreciated. 

 

Duplicate Segment ID =
IF (
COUNTROWS ( FILTER ( table1, table1[SEGMENT_ID] = EARLIER ( table1[SEGMENT_ID] ) ) )
>= 2,
"YES",
"NO"
)
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sv98917n , Try a measure like. It will depend on rows context

Duplicate Segment ID =
IF (COUNTROWS ( FILTER ( allselected(table1), table1[SEGMENT_ID] = max ( table1[SEGMENT_ID] ) ) ) >= 2, "YES", "NO" )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@sv98917n , Try a measure like. It will depend on rows context

Duplicate Segment ID =
IF (COUNTROWS ( FILTER ( allselected(table1), table1[SEGMENT_ID] = max ( table1[SEGMENT_ID] ) ) ) >= 2, "YES", "NO" )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

The MAX made everything come back as "no" and when I made MAX, EARLIER, it gave me the original result. 

@sv98917n , try

maxx(summarize(table1,table1[SEGMENT_ID],"_1" , COUNTROWS(table1)),[_1]>= 2, "YES", "NO")

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I got the first version to work. Thank you!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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