Forum Discussion
Tiger2514555
2 years agoHelper III
Get max multiple selected value from slice
I chose weeks 44 and 42, which would be 2 if it was the highest week. Less than 3 I don't understand why my data where weeks are less than weeks maximum doesn't meet the 3 criteria if weeks are...
- 2 years ago
Now I can do this, I created a new Week Create table but didn't relationship it because if I concatenate the result would be the same.
There is a problem with LasetWeek which tells which week is the highest week.
LasetWeek =
VAR SelectedWeek = ALLSELECTED(WeekSlicer[Week Create])
VAR Max_Month =
CALCULATE(
MAXX(
FILTER(
ALLNOBLANKROW(DemandSummaryAPS),
'DemandSummaryAPS'[Week Create] IN SelectedWeek
),
DemandSummaryAPS[Week Create]
)
)
RETURN
Max_Month
Tiger2514555
2 years agoHelper III
| Week Create | id | item | quantity | Week Due | Check Measure | Week By Week |
| 42 | F01 | A2 | 30 | 40 | 3 | -30 |
| 44 | F01 | A2 | 20 | 40 | 2 | 20 |
If I select the slicer Week Create 44 and 42, weeks with the highest measurement value must be 2, and weeks less than the highest will be 3 and negative values. Now I'm stuck with a problem. Week values that are less than my maximum week, check, measure all to 2.
lbendlin
lbendlin
2 years agoSuper User
see attached