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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
erenonem
Frequent Visitor

How to create Rankx mesaure using 1 measure and more than 1 table?

Hi,

 

I have 3 different master tables linked with some fact tables. All I want to create a Rankx measure, and rank those master tables fields by a specific measure.

 

My Sales measure works for 3 different fields and shows the results. If I create 3 different Rankx measure for each of those fields, its also working. 

 

They are different table and I m not able to use RANKX(<table>, <expression>, <value>, <order>, <ties>) function.

 

Any chance to get some help?

 

Table 1: Gender

Table 2: Age Group

Table 3: Region

 

Common Measure is Sales and working perfectly for 3 of them

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

HI @erenonem ,

Pls refer the below:

base table:

vluwangmsft_0-1664187042661.pngvluwangmsft_1-1664187055820.png

vluwangmsft_2-1664187063246.png

 

Result:

vluwangmsft_3-1664187077847.png

You could download my pbix file to learn detail operations.

 

 

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

HI @erenonem ,

Pls refer the below:

base table:

vluwangmsft_0-1664187042661.pngvluwangmsft_1-1664187055820.png

vluwangmsft_2-1664187063246.png

 

Result:

vluwangmsft_3-1664187077847.png

You could download my pbix file to learn detail operations.

 

 

 

Best Regards

Lucien

HoangHugo
Solution Specialist
Solution Specialist

Hi

Create a table expression to combine your 3 table (they should same number of columns and column names), then rank it. Try this one

rank =
var table = UNION (table 1, table 2, table 3)
return RANKX([table],value)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.