Forum Discussion
Difference from previous Row
- Anonymous2 years ago
Thank you VahidDM for your prompt reply.
Hi NewbieJono ,
Depending on the information you have provided, you can add a new measure:
NEW Difference = VAR _Totalswtiches = SELECTEDVALUE ( 'Table'[Total_switches] ) VAR _MOVEAVERAGE = MAXX ( FILTER ( ALL ( 'Table' ), [Total_switches] < _Totalswtiches ), [NEW Average] ) RETURN IF ( _Totalswtiches = 0, 0, SUM ( 'Table'[NEW Average] ) - _MOVEAVERAGE )Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you VahidDM for your prompt reply.
Hi NewbieJono ,
Depending on the information you have provided, you can add a new measure:
NEW Difference =
VAR _Totalswtiches =
SELECTEDVALUE ( 'Table'[Total_switches] )
VAR _MOVEAVERAGE =
MAXX (
FILTER ( ALL ( 'Table' ), [Total_switches] < _Totalswtiches ),
[NEW Average]
)
RETURN
IF ( _Totalswtiches = 0, 0, SUM ( 'Table'[NEW Average] ) - _MOVEAVERAGE )
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.