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.
How to add a calculated column for the last year sales for the same month divison wise?
DivDateSales
A | 01/01/2015 | 100 |
A | 01/01/2014 | 200 |
A | 01/01/2016 | 300 |
B | 01/01/2015 | 150 |
B | 01/01/2014 | 250 |
B | 01/01/2016 | 350 |
Solved! Go to Solution.
hi @Deva002
try with this:
LastYearSales = CALCULATE(Sum(Sales[Sales]),ALLEXCEPT(Sales,Sales[Div]),DATEADD(Sales[Date],-1,YEAR))
hi @Deva002
try with this:
LastYearSales = CALCULATE(Sum(Sales[Sales]),ALLEXCEPT(Sales,Sales[Div]),DATEADD(Sales[Date],-1,YEAR))
Thanks Victor. 🙂
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 |
---|---|
115 | |
100 | |
88 | |
69 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |