Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Sumup Column based on Filter as Calculated Column

Hi Guys, Can someone help to get the formula in a calculated Column. (I derived it in Measure, but i need the same calculation in Calculated Column). Measure Formula: Current Month Total = CALCULATE...
  • v-lili6-msft's avatar
    v-lili6-msft
    6 years ago

    hi  Anonymous 

    Do you want show this expected output in power bi calculated table?

    If so, you need to create a new table like below:

    New table = SUMMARIZE(Table1,Table1[Subject],"Month 1",CALCULATE(SUM(Table1[Month1]),FILTER(Table1,Table1[Class]="A")))

    Result:

     

    here is sample pbix file, please try it.

     

    Regards,

    Lin