Forum Discussion
jenneferparr
Helper I
6 years agoIf-Then Measure doesn't total correctly
I have a table where I've created 3 measures to calculate a 4th measure using an if statement. I have two problems but specifically need help getting that if statement to total correctly. Here are m...
- 6 years ago
Hi jenneferparr ,
You may create a new measure like DAX below, assuming the field in Rows box of Matrix visual is Table1[Product ID].
CALCBF_New = VAR _table = SUMMARIZE ( Table1, Table1[Product ID], "_Value", [CALCBF] ) RETURN IF ( HASONEVALUE ( Table1[Product ID] ), [CALCBF], SUMX ( _table, [_Value] ) )Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Pragati11
Super User
6 years agoHi jenneferparr ,
Try checking this existing thread for this:
https://community.powerbi.com/t5/Desktop/Measure-Total-not-reflecting-correctly/m-p/668833
Thanks,
Pragati
- jenneferparr6 years ago
Helper I
Hi Pragati11,
I did look at that post. It doesn't help me figure out which of my measures needs to be adjusted or how. I've also read through all the other posts that are related to this problem, and followed all the links provided in those posts.