Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I actually have some monitoring samples that I take each 5minutes, some of this values are cumulative and I need to take previous value in order to achieve:
5 Min Diff Value = Actual Value - Previous Value
So far I was able to achieve the following...
LOAD_DATE_MINUS_5 = CALCULATE(MAX(LKP_Calendar[Load_Date])-(5/1440))
This is returning the previous 5 min date.
Batch_Requests_Delta = CALCULATE(SUM(DWH_ENGINE_KPIs[Batch_Requests_Cumulative]);FILTER(DWH_ENGINE_KPIs;DWH_ENGINE_KPIs[LOAD_DATE_MINUS_5]))
This is basically returning wrong data, I think it's a total SUM of values, is not being filtered by previous date.
I know I'm missing something but I'm not sure what...
Any help will be appreciated 😄
Solved! Go to Solution.
I assume your [LOAD_DATE_MINUS_5] is a measure, and you have built the relationship properly between "DWH_ENGINE_KPIs" table and "LKP_Calendar" table. So you can just write your [Batch_Requests_Delta] like:
= CALCULATE ( SUM ( DWH_ENGINE_KPIs[Batch_Requests_Cumulative] ), FILTER ( LKP_Calendar, LKP_Calendar[Load_Date] = [LOAD_DATE_MINUS_5] ) )
Regards,
I assume your [LOAD_DATE_MINUS_5] is a measure, and you have built the relationship properly between "DWH_ENGINE_KPIs" table and "LKP_Calendar" table. So you can just write your [Batch_Requests_Delta] like:
= CALCULATE ( SUM ( DWH_ENGINE_KPIs[Batch_Requests_Cumulative] ), FILTER ( LKP_Calendar, LKP_Calendar[Load_Date] = [LOAD_DATE_MINUS_5] ) )
Regards,
Batch_Requests_Delta = CALCULATE(SUM(DWH_ENGINE_KPIs[Batch_Requests_Cumulative]);FILTER(DWH_ENGINE_KPIs;DWH_ENGINE_KPIs[LOAD_DATE_MINUS_5]))
That looks a bit weird to me. I would expect something more like:
Batch_Requests_Delta = CALCULATE(SUM(DWH_ENGINE_KPIs[Batch_Requests_Cumulative]);FILTER(ALL(DWH_ENGINE_KPIs); DWH_ENGINE_KPI[LOAD_DATE] = MAX(DWH_ENGINE_KPIs[LOAD_DATE_MINUS_5])))
Or... something. 🙂 Like we are trying to find the correct LOAD_DATE... the one that matches the MINUS_5 column, ya know!?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
82 | |
54 | |
40 | |
35 |