Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I am trying to do rank a measure based on two column. one column is from table1 and other is from table2. And there is one to many relation between the two table.
I am using below dax-
Can anyone help me with the dax?
See if this thread can help you:
https://community.powerbi.com/t5/Desktop/RANKX-measure-across-two-tables-not-working/td-p/468549
If the problem still exists, please remove the sensitive data and provide a sample pbix and the results you expect, so as to make your scenario clearer.
@Anonymous , Try like examples
rank = RANKX(Summarize(ALL(Table),Table1[center],Table2[plan]), [# of employee], , DESC)
rank = RANKX(Summarize(allselected(Table),Table1[center],Table2[plan]), [# of employee], , DESC)
Hi @amitchandak
I have used the formula that you have suggested.
I have used center from one table & plan from another table.
But getting the below error-
Can you look into it?
@Anonymous , Please share the formula. Check Summarize, should have table that is getting closed properly
example
summarize(allselected(Table) , Table[Col], Table2[Col])
Hi @amitchandak ,
Basically,
I have below chart
In this gragh I have taken count of emp id and group by center & plan.
Center is from one table and Plan is from another table. Count of employee id is from the table from where i have taken Plan.
So my requirement is only to showTop 5 employee count per Center per plan.
I have mapped center table with plan table with employee id.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.