Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Max range axis

Hi everyone, I have 2 column values of data, Cash flow and EBITDA, and initially wished to have both columns in the same axis. However it does not seem possible. Hence, I have arranged them by havin...
  • v-jianboli-msft's avatar
    v-jianboli-msft
    3 years ago

    Hi Anonymous ,

     

    Please try:

    MAX VALUE2 = 
    var _a = CALCULATE(SUM('Case'[Actual]),FILTER(ALLEXCEPT('Case','Case'[Date]),[EBITDA]="EBITDA"))
    var _b = CALCULATE(SUM('Case'[Forecast]),FILTER(ALLEXCEPT('Case','Case'[Date]),[EBITDA]="EBITDA"))
    var _c = CALCULATE(SUM('Case'[Actual]),FILTER(ALLEXCEPT('Case','Case'[Date]),[Cash Flow]="Cash Flow"))
    var _d = CALCULATE(SUM('Case'[Forecast]),FILTER(ALLEXCEPT('Case','Case'[Date]),[Cash Flow]="Cash Flow"))
    return MAXX({_a,_b,_c,_d},[Value])

    Final output:

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.