Forum Discussion
Moving Target Sum
- Anonymous2 years ago
Hi, Anonymous
May I ask if this is the expected output you are looking for? Based on your description, I have created a measure to achieve the effect you are looking for. Following picture shows the effect of the display.
Measures:
PredictedValue = VAR _1 = SUM ( 'Table'[Index] ) + 1 VAR _2 = SUM ( 'Table'[Index] ) + 12 VAR _predictedValue = CALCULATE ( SUM ( 'Table'[Revenue] ), FILTER ( ALL ( 'Table' ), 'Table'[Index] = _1 || 'Table'[Index] = _2 ) ) RETURN _predictedValueIf this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi, Anonymous
May I ask if this is the expected output you are looking for? Based on your description, I have created a measure to achieve the effect you are looking for. Following picture shows the effect of the display.
Measures:
PredictedValue =
VAR _1 =
SUM ( 'Table'[Index] ) + 1
VAR _2 =
SUM ( 'Table'[Index] ) + 12
VAR _predictedValue =
CALCULATE (
SUM ( 'Table'[Revenue] ),
FILTER ( ALL ( 'Table' ), 'Table'[Index] = _1 || 'Table'[Index] = _2 )
)
RETURN
_predictedValue
If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
- Anonymous2 years agoNot applicable
Hi!
tThanks for your reply. actually is not exactly what I need, but you just gave me the perfect idea of how I might solve it! So thanks a lot! Ill mark you up as solution anyways.