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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

RANKX not Dynamically Changing Based on Selected Date/Time Filters

I have two calulated columns that I use to display my top Cluster Ids by Cost. The top 10 Cluster Ids are displayed and the rest are thrown into "Other Cluster Ids". When filtering this view based on time, it does not dynamically change. For example, it will show me the correct Cluster Ids for the total date range, but when I filter the time range to the current week, it will continue to display those top Cluster Ids instead of dynamically changing to the ones that are the most for that week. Here are my my calculated columns:

Cluster Id Rank = RANKX(
    ALL( azure_amtz_aggr_cost[ClusterId] ),
    CALCULATE( SUM( azure_amtz_aggr_cost[Cost] ), ALLEXCEPT( azure_amtz_aggr_cost, azure_amtz_aggr_cost[ClusterId] ) )
)
Cluster Id Rank Value = IF(azure_amtz_aggr_cost[Cluster Id Rank] <= 10, azure_amtz_aggr_cost[ClusterId], "Other Cluster Ids")

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , the calculated column can not change with slicer value, you have to create a measure and measure rank

 

Example measure

 

Cluster Id Rank = RANKX(
ALLSELECTED( azure_amtz_aggr_cost[ClusterId] ),
CALCULATE( SUM( azure_amtz_aggr_cost[Cost] ), ALLEXCEPT( azure_amtz_aggr_cost, azure_amtz_aggr_cost[ClusterId] ) )
)


Cluster Id Rank = RANKX(
ALLSELECTED( azure_amtz_aggr_cost[ClusterId] ),
CALCULATE( SUM( azure_amtz_aggr_cost[Cost] ) ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors