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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
m4xon
Helper III
Helper III

Calculated column to rank data based on the filter context

Hello,

 

Is it possible to create calculated column to rank the data based on the filter context? I have in the database column Dataset_1, Dataset_2 ... . Each Dataset_ contain 5 different quarters. I would like to add index number for each quarter from 1 to 5 (but depend of the datset selected it would be different quarters) to be able to create a relationship with another table where I have some additional info that I would like to put on matrix table.

 

Thank you

Max

 

1 ACCEPTED SOLUTION

Hi, @m4xon 

 

You can try the following methods.

Order = RANKX(FILTER('Table 2',[Dataset]=EARLIER('Table 2'[Dataset])&&[Phase]=EARLIER('Table 2'[Phase])),[%],,ASC)

vzhangti_0-1689574556120.png

Is this the result you expect?

 

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.

View solution in original post

4 REPLIES 4
m4xon
Helper III
Helper III

@v-zhangti any idea? 🙂

v-zhangti
Community Support
Community Support

Hi, @m4xon 

 

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.

I hope it make it more clear.

More less user select Dataset 1 or 2, based on that he see in the table appropriate Quaters.

Based on that quters he see in the table appropriate % values from the table.

Screenshot 2023-07-11 111350.png

Hi, @m4xon 

 

You can try the following methods.

Order = RANKX(FILTER('Table 2',[Dataset]=EARLIER('Table 2'[Dataset])&&[Phase]=EARLIER('Table 2'[Phase])),[%],,ASC)

vzhangti_0-1689574556120.png

Is this the result you expect?

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.