Forum Discussion

qaiseralam's avatar
qaiseralam
Regular Visitor
3 years ago

Custom column total in Power BI matrix

so Below is the snapshot of my power Bi Desktop 

 

I have created three Parameteric field from where we can select threshold value 

 

i have created measure using case when statement 

    CE Category =
         VAR CE_var = qa_branch_score[CE]
               RETURN
              SWITCH(TRUE(),
              CE_var < 'Very High'[Parameter Value], 3,
             CE_var < 'H'[H Value], 2,
             CE_var < 'MEDIUM THRESHOLD VALUE'[M Value], 1,
             0
    )

 based on input i am assigning 3 , 2 , 1 and 0 value . This is working fine. 

Now Problem is that is Total column I want to add Ce category for all three month  

 

so for exampe  March score 3 , april 2 and may score 1 and june score is  0 , so in total I want 6 ( i.e. 3+2+1+0 ) do let me know if any further input is required from my end.