Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I needed two measures to know current year ranking and previous year ranking from the data below:
Country Name | Ranking | Year |
India | 12 | 2019 |
India | 10 | 2020 |
US | 2 | 2020 |
US | 1 | 2019 |
Please help me to achieve this.
Thanks
Solved! Go to Solution.
Proud to be a Super User!
Proud to be a Super User!
Hi @Anonymous
try
CurrentYear = CALCULATE(MAX(Table[Ranking]), Table[Year] = YEAR(TODAY()) )
and
PrevYear = CALCULATE(MAX(Table[Ranking]), Table[Year] = YEAR(TODAY())-1 )
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
95 | |
90 | |
35 | |
35 |
User | Count |
---|---|
153 | |
99 | |
82 | |
63 | |
54 |