Forum Discussion
Calculate value in coulamn based on Max week Number
- Anonymous2 years ago
Hi WaelTalaat79
Thanks for the reply from Ritaf1983 .
WaelTalaat79 , you can try the following method as follows.
My sample:
1. Create a calculated table as the slicer
Slicer = VALUES('Table'[weeknum])2. Create a measure as follows
Measure = VAR _max = CALCULATE(SUM('Table'[Value]), FILTER('Table', [weeknum] = MAX('Slicer'[weeknum]))) VAR _min = CALCULATE(SUM('Table'[Value]), FILTER('Table', [weeknum] = MIN('Slicer'[weeknum]))) RETURN _max - _minOutput:
Best Regards,
Yulia XuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ritaf1983 i can't to upload the pbix but here below screen shot
the total stock value in week 13 and here if i select from 10 to 13 the idea is to show the value of the Max week numbwer which is 13 to compare with ninmum week numbwer which is 10
- Anonymous2 years agoNot applicable
Hi WaelTalaat79
Thanks for the reply from Ritaf1983 .
WaelTalaat79 , you can try the following method as follows.
My sample:
1. Create a calculated table as the slicer
Slicer = VALUES('Table'[weeknum])2. Create a measure as follows
Measure = VAR _max = CALCULATE(SUM('Table'[Value]), FILTER('Table', [weeknum] = MAX('Slicer'[weeknum]))) VAR _min = CALCULATE(SUM('Table'[Value]), FILTER('Table', [weeknum] = MIN('Slicer'[weeknum]))) RETURN _max - _minOutput:
Best Regards,
Yulia XuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.