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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Zoozoo800
Frequent Visitor

Visualising ranked values

I have a dataset with student Id , test date, test venue, test slot. A Student can have more than one test date with a different venue(nyc,la,..) and slot(a,b,c..)

 

I have slicers for venue and slot.

And i need to visualise the venue and slot distribution  but only for the first test dates for each student.

 

I have a dynamic rank measure .

rank=Countx(filter (allselected[table]),[student Id]=max([student Id]) && [test date]<=max([test date])),[test date])

 

And count of first tests

Calculate(count(test date), filter (table, [rank]=1)

Everything works in a card.

But when I take it into a table visual with venue and first test count I am not able to get the venue distribution of the first tests I am only getting the count of first tests for each venue if that venue was the only option.

 

Tldr. In a table visual, The row context always gets applied first and then it applies my dynamic rank logic.

How do I make power bi apply my dynamic rank logic first and then apply the row context to the ranked values.

 

I want a table which shows 

Summarize(filter(table,[rank]=1),count([test date])) is there a way to directly visualise this table in a visual. I can get this in dax studio but not in power bi as a dynamic visual that changes with slicers.

 

When I am trying to apply this filter through the filter pane onto the visual with venue and count of test dates everything disappears.

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Zoozoo800 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors