In this table, there are monthly values (A and C) for each Dep. What I am interesten in is 1) the max value per year for each A and C for each Dep; 2) the max difference between A and C for each year and each Dep
using DAX formulae in order to present results in pivot tables.
What I achived so far is the solution for 1) with helping columns showing the max for each year, however for the sake of not using explict helping columns, a pure DAX solution is desired.
For the second point I hadn't had any solution at all.
Is it possible to solve this in PowerPivot or Power BI using DAX?
Indeed, I transformed data in power query like this:
And I used two DAX formulae:
Y_MaxX_Val_A:=CALCULATE(MAXX('Table2';'Table2'[Value]); ALL('Table2'[Month]) ;FILTER('Table2'; 'Table2'[A_C] = "A"))
Y_MaxX_Val_C:=CALCULATE(MAXX('Table2';'Table2'[Value]); ALL('Table2'[Month]) ;FILTER('Table2'; 'Table2'[A_C] = "C"))
which solves the first problem.
But how do I get the maximum difference of each year?