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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nijlal01
Helper I
Helper I

Rank products based on measure in another table

Hi all,

 

I would like to rank the column 'Product'[ParentProductCode] based on a measure from another table 'Volume Received From Vendor'[Volume Received From Vendor Actual HL]. The data is retrieved from a live connection with anOLAP cube so I cannot use the query editor. I cannot manage to get it to work in a measure using DAX. Below the DAX statement which I tried however it only returns rank 1 for all products.

 

Rank = RANKX('Product';'Volume Received From Vendor'[Volume Received From Vendor Actual HL])
 
Anyone who knows how to make it work?
 
Kind regards,
 
Lars
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Nijlal01 

if your tables have relationships you can try 

Rank = RANKX(ALL('Product');'Volume Received From Vendor'[Volume Received From Vendor Actual HL])

it also depends on your measure statement 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

1 REPLY 1
az38
Community Champion
Community Champion

Hi @Nijlal01 

if your tables have relationships you can try 

Rank = RANKX(ALL('Product');'Volume Received From Vendor'[Volume Received From Vendor Actual HL])

it also depends on your measure statement 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors