Forum Discussion
Sum problem in matrix table
- 7 years ago
Hi,
Try this measure
OPEX_ = SUMX(VALUES(Product_Group[Product_name]),[Per_Unit (main)]*[Deal#count]*-1)
Hope this helps.
Hi,
Try this measure
OPEX_ = SUMX(VALUES(Product_Group[Product_name]),[Per_Unit (main)]*[Deal#count]*-1)
Hope this helps.
Dear Ashish_Mathur
Thank you very much for your reply. Actually your formula works for my table. Total sum for columns are right.
But my total Opex amount is changed.
- Ashish_Mathur7 years agoSuper User
You are welcome. I just checked - no numbers in the matrix have changed. Please recheck.
- OSS7 years agoHelper III
Dear Ashish_Mathur
When remove all filters OPEX amount is equal to 76.466.791 (with the formula [Per_Unit (main)]*[Deal#count]*-1)
After changing formula with the SUMX(VALUES(Product_Group[Product_name]),[Per_Unit (main)]*[Deal#count]*-1)
total OPEX amount equals 73.911.984
for checking please remove product group and segment filters.
Best Regards
- Ashish_Mathur7 years agoSuper User
Hi,
WIth all filters removed, I think the correct result should be 7,39,03,022.92. This is the measure i used
Measure = if(HASONEVALUE(Product_Group[Product_name]),[OPEX_],SUMX(SUMMARIZE(VALUES(Product_Group[Product_name]),Product_Group[Product_name],"ABCD",[OPEX_]),[ABCD]))
Please reconfirm