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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
erniemon
New Member

RANKX, virtual table, Filter on visual

I am displaying yop 7 projects in 7 individual visuals, first visual is has a visual filter in [index] = 1. second visual is filtered on this visual [index] = 2 and so on for the seven visuals. index is a RANKX function on a table column. This works great unitl any slicer is applied. To corerct this, I used a measure to calculate RANKX by allselected. The only problem is I can't refernce or use it as variable filtering on this visual. I doens't let me enter any values. I am guessing it's because I don't have a table referencing this value. 

How can I use a variable in Filter on this visual, that references a RANKX dynamically?

 

erniemon_0-1617517142358.png

RanktopLate works great when it's a column in a table. but when dynamically recreated to account for any slicers, the measure works in a table but doesn't work as a Filter on this visual. Can anybody help?

 

Thanks

 

2 REPLIES 2
selimovd
Super User
Super User

Hey @erniemon ,

 

as you already figured out you can use calculated columns as filter, but not measures as they always need a context.

You have to filter the visuals to your projects and then with the measure return the top 7 for each project.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Thanks, So I filter first ok, then I RANKX ok, how do I display seven different donuts setting up each one to Filter on the visual using the measure returning the RANKX? When I use the measure in a table it displays the rank perfectly. when I place the measure in the filter on this visual no action. I put the measure on a card, says (Blank)". So After I have sliced the data, how can I display seven individual donuts by RANK. 
I am using three tables, a master projects table with all tasks, and about 20 projects. A summary table linked by project name. Lastly, a Project name table also linked through the project name. 

erniemon_0-1617581421383.png

This display is using a column in a table that has a rank. Using filter on this visual

erniemon_1-1617581561585.png

Each donut has the value 1,2,3,4,5,6,7. displaying the bottom seven projects. When I filter the rank doesn't work. So I created a measure to rank, and it gives me the proper ranking. Only works in a table or matrix. 

 

How to get the rank information from the measure to Filter on this visual?

 

Again I want to express my thanks for helping me.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors