Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello, I have a data set that has multiple years and multiple institutions in it. I created a YoY measure by first creating a measure for LY and then calculated the YoY with
Solved! Go to Solution.
Hi @zanderson45 ,
The modified formula is as follows:
Rank YoY =
RANKX(ALL('DimRankings'[InstitutionName]),[HERD YoY (%)],,
DESC,
Dense)
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from rohit1991.
Hi @zanderson45 ,
Please try the following formula:
Rank YoY =
RANKX(ALL('DimRankings'[YearDate]),[HERD YoY (%)],,
DESC,
Dense)
Result:
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the reply. I am looking to rank each institution against one another by year. In the above example that would mean ranking institution A, B, and C for 2021, 2022, 2023, and 2024. So for 2022 the rank would be #1 C, #2 A, and #3 B and so on.
Hi @zanderson45 ,
The modified formula is as follows:
Rank YoY =
RANKX(ALL('DimRankings'[InstitutionName]),[HERD YoY (%)],,
DESC,
Dense)
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your response. I tired that and I received the error "Too many arguments were passed to the EARLIER function. The maximum argument count for the function is 2." with the EARLIER(DimRankings[InstitutionName]) underlined. Looking up the error it says that EARLIER(DimRankings[InstitutionName]) doesn't need to pass twice.
you can try this :
Rank YoY =
RANKX(
FILTER(
ALLEXCEPT(DimRankings, DimRankings[YearDate]),
DimRankings[InstitutionName] = EARLIER(DimRankings[InstitutionName])
),
[HERD YoY (%)],
, DESC,
DENSE
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |