Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a table called 'Service Desk List'. I Have two Measures which are
Request = COUNTROWS('Service Desk List')
Resolved = calculate(countrows('Service Desk List'), userelationship('Service Desk List'[Resolution_Date],DateKey[Date]))
These get How many records have been added, and how many have been completed essentially. I need a new meausre which will get the difference between them and add it to the previous month. In my Picture below for example I would expect a line to Start at 35, then 57.
@LewisH add to what of the previous month?
something like this?
measure = (([request] - [resolved]) + calculate([request], previousmonth(datetable[date])) )
(for the second part of the statement where there is calculate you need to be specific of what you want to add it to
Proud to be a Super User!
So We take the first month and we can see the Requested 78 - the Resolved 43 = 35.
In the second month we have 141 requested and 119 resoloved, leaving 22. So the new measure should show 35 + 22 = 57.
@LewisH have you tried the above?
Proud to be a Super User!
I got this result which appears to be calculating the difference but not applying this to the previous difference.
@LewisH which one did you use? please specify how you wrote the measure it required adjsutment probably
Proud to be a Super User!
If I was to use this
Qty. Live2 = (([request] - [resolved]) + CALCULATE([request] - [Resolved], PREVIOUSMONTH(DateKey[Date]) ))
How can I chage this to only apply when the value's (Request and Resolved) aren't both blank?
did you try the running total? (i adjusted it slightly_
measure = calculate([request]-[resolved], filter(datetable, datetable[date] <= max(datetable[date]))
Proud to be a Super User!
sorry my bad i left out the all
measure = calculate([request]-[resolved], filter(all(datetable), datetable[date] <= max(datetable[date]))
Proud to be a Super User!
Thnak you again for your help, hopefully we will get there. I'm personally confused on what to do next. I have been left with this.
The first data Entry is in April, previous dates should be ignored.
@LewisH is there any chance you can share your pbix with me? you can send it to me privately
Proud to be a Super User!
Yes sure, where can I send it?
However my data comes from Navision, so I don't know how you would connect / get the data??
Thank you for this response. I've applied this and it gives me this result
The first Date (35) Is correct. However I would expect the second Date to say 55 as it should get the new total (Requested - Resolved) as it does but then apply the 35 from the previous month into the calculation. I hope that makes sense. Thsi way we can see the Live differercne betwen them and hopefully see it go down over time.
@LewisH can you change the results to a table so i can see what its doing, also put the request and resolved amounts in
so
date, requested, resolved, cummulative measure in a table format thanks
Proud to be a Super User!
Here you are.
Measure should read 35, 55, 50
Thanks for your help.
I used
Qty. Live = (([request] - [resolved]) + CALCULATE([request] - [Resolved], PREVIOUSMONTH(DateKey[Date]) )).
I guess it's this part which I'm not understanding correctly..
CALCULATE([request] - [Resolved], PREVIOUSMONTH(DateKey[Date]) )).
however if you wanting a running total
for example
measure = calculate([request], filter(datetable, datetable[date] <= max(datetable[date]))
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 71 | |
| 67 | |
| 64 |