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.
Hi All,
I need calculation for below percentage change. When i select multiple years from slicer it should compare and display percentage changed for latest year.
Group | Sales | year | percentage Diff |
NAP | 50 | 2019 | |
NAP | 25 | 2020 | -50% |
BTP | 100 | 2019 | |
BTP | 75 | 2020 | -25% |
ACT | 100 | 2019 | |
ACT | 60 | 2020 | -40% |
Solved! Go to Solution.
Try like
this year =
var _thisyear = maxx(table,table[year])
return
calculate(sum(table[sales]),all(table[year]),table[year]=_thisyear)
last year =
var _thisyear = maxx(table,table[year])-1
return
calculate(sum(table[sales]),all(table[year]),table[year]=_thisyear)
Try like
this year =
var _thisyear = maxx(table,table[year])
return
calculate(sum(table[sales]),all(table[year]),table[year]=_thisyear)
last year =
var _thisyear = maxx(table,table[year])-1
return
calculate(sum(table[sales]),all(table[year]),table[year]=_thisyear)
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |