Forum Discussion
Diffence Report
- Anonymous8 years ago
aww91,
Create the following measures in your Demand by Dates table.
checkpositive = IF([SumEndDate]>[SumBegDate],[SumEndDate]-[SumBegDate],0)
checknegative = IF([SumEndDate]<[SumBegDate],[SumEndDate]-[SumBegDate],0)
Increase = IF(COUNTROWS(VALUES('Demand By Dates'[PPM ID]))=1, [checkpositive],SUMX(VALUES('Demand By Dates'[PPM ID]),[checkpositive]))
Decrease = IF(COUNTROWS(VALUES('Demand By Dates'[PPM ID]))=1, [checknegative],SUMX(VALUES('Demand By Dates'[PPM ID]),[checknegative]))
Regards,
Lydia
If you are referring to your totals in your table, then see this article:
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
- aww918 years agoFrequent Visitor
Good article, very well written however my situation is a little different. I am trying to sum separately positive and negative in the measure SumNetChg.
- aww918 years agoFrequent Visitor
Any other ideas or suggestions? I have been working on this problem for a week. Thanks in advance.
- Anonymous8 years agoNot applicable
aww91,
Create the following measures in your Demand by Dates table.
checkpositive = IF([SumEndDate]>[SumBegDate],[SumEndDate]-[SumBegDate],0)
checknegative = IF([SumEndDate]<[SumBegDate],[SumEndDate]-[SumBegDate],0)
Increase = IF(COUNTROWS(VALUES('Demand By Dates'[PPM ID]))=1, [checkpositive],SUMX(VALUES('Demand By Dates'[PPM ID]),[checkpositive]))
Decrease = IF(COUNTROWS(VALUES('Demand By Dates'[PPM ID]))=1, [checknegative],SUMX(VALUES('Demand By Dates'[PPM ID]),[checknegative]))
Regards,
Lydia