This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Greetings,
Any help with this problem will be greatly appreciated. Trying to create a difference report and I am running into problems with displaying two summaries (Net Increase and Decreases). The report is intended to allow the user to select beginning and end dates from the dropdowns and to display summary and detail information (see screen shot). The problem is that I cannot seem to get the right filter context needed to display Increase and Decrease – the net change is displaying fine. Again, thanks in advance for any suggestions.
Below: Screen shot of expected report, and link to Power BI application (Google Drive)
Solved! Go to Solution.
@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
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.
Any other ideas or suggestions? I have been working on this problem for a week. Thanks in advance.
@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
Outstanding! Works perfectly. Thank You.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 24 | |
| 23 |