Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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 FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |