Forum Discussion
need some help with this DAX
- 2 years ago
Hi, Anonymous
Thank you very much for your reply. You should put this metric and DateShiftKey column in table visual. See if you get the expected results. The metric needs to rely on an external context such as the DateShiftKey column to work.
Best Regards,
hackcrr
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Anonymous
Perhaps you could try the following dax expression:
SortingNum1 =
VAR DSKValue = [DSKfromlastcyle]
RETURN
CALCULATE(
MAX(DimCrewSchedule[SortingNum]),
FILTER(ALLSELECTED(DimCrewSchedule),
DimCrewSchedule[DateShiftKey] = DSKValue
)
)The results are as follows:
Best Regards,
hackcrr
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous2 years agoNot applicable
- hackcrr2 years ago
Memorable Member
Hi, Anonymous
Thank you very much for your reply. You should put this metric and DateShiftKey column in table visual. See if you get the expected results. The metric needs to rely on an external context such as the DateShiftKey column to work.
Best Regards,
hackcrr
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.