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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.