Forum Discussion

CornelisV's avatar
CornelisV
Icon for Helper IV rankHelper IV
1 year ago
Solved

Combine CALCULATION DAX in Measure

Dear all,   I have defined two different measure:   1. Sales < 6 :=    CALCULATE([Sales Amount] * 0.2,              'Date'[Fiscal Month Number] < 6              )   2. Sales > 6 :=    ...
  • Idrissshatila's avatar
    1 year ago

    Hello CornelisV ,

     

    try using the below dax.

     

    Sales =
    CALCULATE (
        [Sales Amount] *
            IF (
                MAX ( 'Date'[Fiscal Month Number] ) < 6,
                0.2,   -- multiplier if month < 6
                0.1    -- multiplier if month >= 6
            )
    )
  • CornelisV's avatar
    CornelisV
    1 year ago

    Dear Idrissshatila ,

     

    Thank you for your solution, this is very clear. It works.

     

    Good to see that IF statement can be implemented in the DAX, this is something that I cannot find it so easily back in DAX training book.

     

    Best regards,

     

    Cornelis.