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. What am I doing wrong?

  • 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.

3 Replies