Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Guys,
I need your support. As example I created a very short matrix table which looks like following:
Let's please focus on TFY24 where I wanted to have a separate measure for that fiscal year. The value I created in DAX as following including showing the correct Profit% margin:
so far so good. Now I added another column in front of my KPI column. It is a "sorting" column in order to sort the KPIs in a very efficient approach which I like. However and unfortunately suddenly my Profit margin is disappearing. Currently I do not understand why I would have to adjust my TFY24 formula as I thought it is related to the KPI dimension but not to any sorting dimension. Do you have any idea. Looks like this now (sorting is correct and my idea was to hide the column in the end):
Many thanks for your support.
Solved! Go to Solution.
Thanks for the reply from AntrikshSharma , please allow me to provide another insight:
Hi @M_Chris ,
Power BI default sorting is alphabetical, if your data [KPI] has multiple identical values in a table or there is a circular dependency problem, you may consider creating a new table to customize the sorting.
Create calculated table:
SUMMARIZE(
'Table',[KPI],"Rank",SUMX('Table',[Value]))
Select [KPI] – Column tools – Sort by column – [Rank].
Joins the relationship between two tables.
Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from AntrikshSharma , please allow me to provide another insight:
Hi @M_Chris ,
Power BI default sorting is alphabetical, if your data [KPI] has multiple identical values in a table or there is a circular dependency problem, you may consider creating a new table to customize the sorting.
Create calculated table:
SUMMARIZE(
'Table',[KPI],"Rank",SUMX('Table',[Value]))
Select [KPI] – Column tools – Sort by column – [Rank].
Joins the relationship between two tables.
Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@M_Chris After RETURN return each variable and see what it returns with and without the sorting column, focus on where it deviates, it could be that SELECTEDVALUE is returning BLANK
RankingCM_2 column is in the same table as the KPI column?
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |