Forum Discussion

ckhersonsky's avatar
ckhersonsky
New Member
3 years ago
Solved

Problem with Summing a Measure

Hello.   I have a custom measure that references another column. If(max(Fund)=Fund1,5000,if(max(Fund)=Fund2,6000, and so on.   When I sum this column, the column doesn't sum correctly at all. Wh...
  • v-jianboli-msft's avatar
    3 years ago

    Hi ckhersonsky ,

     

    Based on your description, I have created a simple sample;

    Please try:

    SUM VALUE = SUMX('Table',SWITCH([Fund],"Fund1",5000,"Fund2",6000))

    Final output:

    Best Regards,

    Jianbo Li

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