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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
taimaizumi
Helper I
Helper I

rankx

Hi, every one!

 

I' like to use 'Rankx' correctly but I can't show the visual as I expected.

Below is detailed

 

<table structure>

taimaizumi_0-1657012849141.png

 

<to realize>

to add rank of sum_shipment by category1 and date

 

taimaizumi_1-1657012919269.png

 

<I tried>

input dax as below
 
------------------------------------------------------------
 
calculate(RANKX(ALL('Dimension_002_Calender'[Date]),'Measure_001_出荷'[sum_shipment]),all('Dimension_003_Category'[category1]))
 
------------------------------------------------------------
 
I think above dax can reset the implicit filter by category1 and date, but it didn't work.
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@taimaizumi , use the fact table which is the source for the measure in place of the fact 

 

calculate(RANKX(Summarize(ALL(Fact), 'Dimension_002_Calender'[Date],'Dimension_003_Category'[category1]),'Measure_001_出荷'[sum_shipment]))

View solution in original post

2 REPLIES 2
taimaizumi
Helper I
Helper I

@amitchandak 

I really appreciate your quick and kind response!

By doing what you adviesed, it worked well as I'd like to do!

amitchandak
Super User
Super User

@taimaizumi , use the fact table which is the source for the measure in place of the fact 

 

calculate(RANKX(Summarize(ALL(Fact), 'Dimension_002_Calender'[Date],'Dimension_003_Category'[category1]),'Measure_001_出荷'[sum_shipment]))

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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