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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GAPER
Post Patron
Post Patron

Top N slicer define issues

Hi all - i am following the instructions here 

https://blog.magnetismsolutions.com/blog/colinmaitland/2022/05/13/how-to-configure-a-top-x-slicer-in...

 

I am having some issues at the step 2 and 4

 

step 2

 

GAPER_0-1701652969957.png

I created the step 2 as shown. But it only has 1 single drop down of 100 (instead of 1 - 100)

GAPER_2-1701653064388.png

here is my value column

GAPER_3-1701653106681.png

 

Is it because my default value for Value is summed?

 

 

Step 4 

 

GAPER_5-1701653158858.png

 

You could see that my revenue ranked is set up properly but the rank Step 4's logic is all at zero now. 

 

Thanks a lot in advance. 

 

Best,

Roger

 

5 REPLIES 5
toziu
Regular Visitor

the first problem is simple.

selectedvalues([value],100) means that if Values are not unique,if will return 100, now you don't filter your [value],so it's value is from 1 to 100, so the function will return 100

toziu_1-1701659581370.png

You should put [value] in the slicer, here i choose 5, [value] has only one value,

so the selectvalue() will return 5,not 100

and the rank <=5,will return 1 ,just likes the picture.

 

can i see your all function?now i can't know the answer of your second question.

GAPER_0-1701665560615.png

 

GAPER_1-1701665600607.png

 

Any reason it's still showing like this...Thanks!

toziu
Regular Visitor

toziu_0-1701666250117.png

i have tried this ,it work well.In slicer , i choose [value]=30,so the selectedvalue() in the card also shows 30

toziu_2-1701666626236.png

try to Put rank[value] and selected rank in the matrix.if your function is right,it would be the same as the [value],just like the picture.

 

maybe you should show me all of your table and your function.

the picture you replied i think is right. 

 

toziu
Regular Visitor

i can't find the mistake,maybe you can send a private message to me

with your all tables and functions.

Sorry for any confusions. 

 

 

Rank (renamed as value) = GENERATESERIES(10,100,5)
Selected Rank = SELECTEDVALUE('Rank'[Value],100)

 

is selected customer rank (exposure) = 
VAR _borrower_rank = [Borrower Revenue]
VAR _selected_rank = 'Rank'[Selected Rank]
RETURN
    IF (
        AND ( NOT ISBLANK ( _borrower_rank ), NOT ISBLANK ( _selected_rank ) ),
        IF ( _borrower_rank <= _selected_rank, 1, 0 ),
        0
    )

 

GAPER_0-1701668966455.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.