This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello, i have several meassures that give me some data and i use them to calculate SLA in terms of:
Requirement (transactions) - production (what we can handle) = requirement (100% or less / how many transactions are left.
As you can see below we have Forecast Final (FC FF) - Prod = Txns OFF SLA
But now in order to have as realistis SLA as possible, i need to add the transactions left to the FF for the following hour. I tried to create a rolling sum but it just continues adding up until the end.
So: FC FF + (Trxns OFF SLA from previous hour) - Prod = Actual Trxns OFF SLA
and so on with all hours.
Is this possible?
Solved! Go to Solution.
Hi @luispadillazumb ,
You can create a measure as below to get Actual Trxns OFF SLA:
Actual Trxns OFF SLA =
VAR _curtime =
SELECTEDVALUE ( 'Requirement'[data Time] )
VAR _pretime =
CALCULATE (
MAX ( 'Requirement'[data Time] ),
FILTER ( ALLSELECTED ( 'Requirement' ), 'Requirement'[data Time] < _curtime )
)
VAR _preTxnSLA =
CALCULATE (
[Txns OFF SLA],
FILTER ( ALLSELECTED ( 'Requirement' ), 'Requirement'[data Time] = _pretime )
)
RETURN
IF ( ISBLANK ( _preTxnSLA ), BLANK (), [FC FF] + _preTxnSLA - [Prod] )
Best Regards
Hi @luispadillazumb ,
You can create a measure as below to get Actual Trxns OFF SLA:
Actual Trxns OFF SLA =
VAR _curtime =
SELECTEDVALUE ( 'Requirement'[data Time] )
VAR _pretime =
CALCULATE (
MAX ( 'Requirement'[data Time] ),
FILTER ( ALLSELECTED ( 'Requirement' ), 'Requirement'[data Time] < _curtime )
)
VAR _preTxnSLA =
CALCULATE (
[Txns OFF SLA],
FILTER ( ALLSELECTED ( 'Requirement' ), 'Requirement'[data Time] = _pretime )
)
RETURN
IF ( ISBLANK ( _preTxnSLA ), BLANK (), [FC FF] + _preTxnSLA - [Prod] )
Best Regards
could you please provide some sample data and expected output?
Proud to be a Super User!
@luispadillazumb , Assuming you have a measure [Trxns OFF SLA]. You need to try
calculate([Trxns OFF SLA], filter(all(Table) , Table[Datetime] = max(Table[Datetime]) -time(1,0,0)))
Hi @amitchandak, thank you so much for your support, but some values are missing (in blue):
Have any idea why?
Check out the May 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 |
|---|---|
| 29 | |
| 28 | |
| 25 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 56 | |
| 48 | |
| 37 | |
| 21 | |
| 20 |