Forum Discussion
Werfuks
3 years agoFrequent Visitor
Calculate the deviation between two columns
Dear Experts, month by month I transfer the workforce into PBI, Now I have a database with a certain amount of single employees. Every data row show an employee with his name, region, country, locat...
- 3 years ago
Werfuks , Always use a separate date/year table
example
//Only year vs Year, not a level belowThis Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))
diff = [This Year]-[Last Year ]
diff % = divide([This Year]-[Last Year ],[Last Year ])Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Werfuks
3 years agoFrequent Visitor
Thank you so much, that's it, I got it!