Forum Discussion

Dain's avatar
Dain
Frequent Visitor
8 years ago
Solved

Need help with DAX

Hello All. I am glad to be part of this community am new to powerbi.i hope I could learn more with the help of all here.am struggling with a logic here. I have a table Date. Group Value 1/4/2018....
  • MFelix's avatar
    8 years ago

    Hi Dain,

     

    Use the following measure:

     

    Output = SWITCH(SUM(Groups[Value]); 0; 0 ; 1 ; 1 ; 2)

    Result is as below:

    Regards,

    MFelix