cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors