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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

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
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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