Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello Community team,
I have a table name KPI with many measures behind, one of which is RANKX, which rankes the value based on a calculated measures before. The final purpose is to assign Score based on their rank.
EBIT_BOT =
IF(
[Ebit_lastest] <> 0,
RANKX(
FILTER(
ALLSELECTED(GC_Masterdata[Company Code], GC_Masterdata[Konzerngesellschaft Name]),
[Ebit_lastest] <> 0
),
[EBIT_change],
,
ASC,
Dense
)
)
All = UNION(
selectcolumns(GC_Masterdata,"Area",GC_Masterdata[Audit-Area], "Object",GC_Masterdata[Konzerngesellschaft Name], "Score", [GC_Score]),
SELECTCOLUMNS(Process, "Area",Process[Audit-Area], "Object",Process[Konzerngesellschaft Name], "Score", Process[Process_Score]),
SELECTCOLUMNS(Project, "Area",Project[Audit-Area], "Object",Project[Konzerngesellschaft Name], "Score", Project[Project_Score]),
)
Solved! Go to Solution.
Hi @Anonymous
Could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Zhengdong,
Thanks for your hints.
I have figured out with other work around, which help me to solve my problem.
So I will close this question.
Thank you.
EBIT_BOT =
IF(
[Ebit_lastest] <> 0,
RANKX(
FILTER(
ALLSELECTED(GC_Masterdata[Company Code], GC_Masterdata[Konzerngesellschaft Name]),
[Ebit_lastest] <> 0
),
[EBIT_change],
,
ASC,
Dense
)
)
All = UNION(
SELECTCOLUMNS(GC_Masterdata, "Area", GC_Masterdata[Audit-Area], "Object", GC_Masterdata[Konzerngesellschaft Name], "Score", [EBIT_TOP], "Rank", [Rank_KPI]),
SELECTCOLUMNS(Process, "Area", Process[Audit-Area], "Object", Process[Konzerngesellschaft Name], "Score", Process[Process_Score], "Rank", [Rank_Process]),
SELECTCOLUMNS(Project, "Area", Project[Audit-Area], "Object", Project[Konzerngesellschaft Name], "Score", Project[Project_Score], "Rank", [Rank_Project])
)
//I just modified your measure but make sure to replace [Rank_KPI], [Rank_Process], and [Rank_Project] with the actual names of your calculated rank columns in each respective table.
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Hello Mr. Hasnain,
Actually the EBIT_BOT is rank already, so I don't need to add other collumns (Rank KPI). My problem is that EBIT_BOT measure gives me different result between the original table KPI, and unioned table All.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.