Forum Discussion
Conditional Sum
- 6 years ago
Hi Anonymous ,
OK used some slicers
Sales w Segment Channel Parters = var _CP = If(MAX(Segement[SegmentName])= "Channel Partners", SUM(SalesFact[ Sales])+5000,SUM(SalesFact[ Sales])) return _CP
and added 5000 to Channel Partners. The logic is the same.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Yes, Nathaniel_C
I just sent this file to play with it with some data.
based on this file data, requirement will be if country is Canada, add $1000 to the total.
Note: am using Power BI Report Server Sept 2019 version.
Hi Anonymous ,
OK used some slicers
Sales w Segment Channel Parters = var _CP = If(MAX(Segement[SegmentName])= "Channel Partners", SUM(SalesFact[ Sales])+5000,SUM(SalesFact[ Sales])) return _CP
and added 5000 to Channel Partners. The logic is the same.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
- Anonymous6 years agoNot applicable
Thank you, Nathaniel_C
It seems lieke Totals are not matching. 'Totals' in matrix must also 5000$ more.
- Anonymous6 years agoNot applicable
Now totals are also matching. please find below video for Totals match from BI Elite .
https://www.youtube.com/watch?v=Ka7Ds4EAjNQ