Forum Discussion
Calculate difference between cards in fully responsive report
- 6 years ago
Hi Anonymous ,
You can create a 'What if' parameter and modify the [Measure2].
Measure 2 = CALCULATE( SUM(Sheet7[Sales]), FILTER( ALLSELECTED(Sheet7), Sheet7[Column] = MAX(Sheet7[Column]) && Sheet7[Year] = MAX(Sheet7[Year]) + [Parameter Value] ) )Please refer to my .pbix file.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
For example, if you want to compare the sales value of 2015 and 2017, you can change the parameter in this formula to 2。
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Has your problem been solved?
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hi Lionel,
Unfortunately it has not yet been solved. This would require the user to manually change the formula when selecting different years for the comparison.
Best regards,
Jan
- v-lionel-msft6 years ago
Community Support
Hi Anonymous ,
You can create a 'What if' parameter and modify the [Measure2].
Measure 2 = CALCULATE( SUM(Sheet7[Sales]), FILTER( ALLSELECTED(Sheet7), Sheet7[Column] = MAX(Sheet7[Column]) && Sheet7[Year] = MAX(Sheet7[Year]) + [Parameter Value] ) )Please refer to my .pbix file.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.