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
florin
New Member

powebi detects as duplicate issue with top N - first values.

Hey guys. Can someone help me please with a filter? I'm trying to use a Top N - first 5 values and is not working for me

So basically i wanna see the top 5 NPS And those top 5 basically have the value 10 But powebi detects that as duplicate and takes the other values in cosideration
a1.png

1 ACCEPTED SOLUTION
ray_ux
Memorable Member
Memorable Member

Ok, there are work arounds for this but the best one is to add a rand()*0.000001 value to your column
Either as a calculated column or just before your topN
https://docs.microsoft.com/en-us/dax/rand-function-dax

or make measure using topN but not just use the column, use column + RAND()*0.00001



View solution in original post

3 REPLIES 3
ray_ux
Memorable Member
Memorable Member

What method did you use first?

it's here

 a2.png

ray_ux
Memorable Member
Memorable Member

Ok, there are work arounds for this but the best one is to add a rand()*0.000001 value to your column
Either as a calculated column or just before your topN
https://docs.microsoft.com/en-us/dax/rand-function-dax

or make measure using topN but not just use the column, use column + RAND()*0.00001



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.