Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am using the formula below to create a ranking measure
Hi @eeurton ,
I love RANKX questions (I don't know why, I just like the logic I guess :P) but they are very hard to trouble shoot without having any data to replicate the issue. For example, you are using a measure to rank rows in a calculated column (I assume based on your EARLIER() statements), but you didn't give us the DAX of said measure.
If at all possible, would you be able to share either the original PBIX or (if that contains confidential information) a PBIX with dummy data that still reflex your issue? If you don't want to share publicly, you can share by PM and I will have a look tomorrow. I'm sure I can figure this out for you 🙂
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
@JarroVGIT thanks for responding to my post! The measure that I am ranking (AVT_PCT_USE) is a calculated column in one of my tables, the formula is below:
if [CNT_TYP_CD] = "PERIOD" then (([OVRD_VAL_VRNC_AMT] + [SAP_COGS_EXP_AMT] - [VAL_ACT_UNIT_USED_AMT] - [SAP_SE_AMT] - [ROCK_SE_TOTAL_FOOD_COST]) / [SAP_COGS_EXP_AMT]) else [OVRD_VAL_VRNC_AMT] / [VAL_ACT_UNIT_USED_AMT])
if we need a pbix with data I will need to get back to you on Monday as I will need to restrict the model down to a historical period that is not sensitive and then refresh the data.
@JarroVGIT , thanks again for responding to my post, I was able to finally figure out the issue (user error). The problem was that the measure I am ranking was mistakenly set as a "text" data type, once I changed that to a decimal number data type the RANX measure started working as expected.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
52 | |
46 | |
15 | |
12 |