Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

DAX Help needed

I have dashboard which has different DAX . One of the DAX is IF ELSE condition ,also has silcer on top of it.   The intial values are ( 1,2) when flag applied as "No" . and there are cerntain value...
  • Icey's avatar
    5 years ago

    Hi Anonymous ,

     

    Knidly check if the attachment is what you want.

    Measure =
    SWITCH (
        SELECTEDVALUE ( Flag[Flag] ),
        "No", SUM ( 'Table'[Value] ),
        "Yes",
            IF (
                SELECTEDVALUE ( 'Table'[Dimension] ) IN { "A", "C" },
                2,
                SUM ( 'Table'[Value] )
            )
    )
    

     

     

    Best Regards,

    Icey

     

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