Forum Discussion
ALLSELECTED() in Calculation Groups Not Working as Expected
- 4 years ago
EP1 , If you do use allselected that it should take max of context will be taken. If you use allselected, as per me, it should use the last available date or page or calendar
CALCULATE(SELECTEDMEASURE(), DATESINPERIOD(DateTable[Date], LASTDATE((DateTable[Date])), -12, MONTH))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
EP1 , If you do use allselected that it should take max of context will be taken. If you use allselected, as per me, it should use the last available date or page or calendar
CALCULATE(SELECTEDMEASURE(), DATESINPERIOD(DateTable[Date], LASTDATE((DateTable[Date])), -12, MONTH))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
amitchandak, that is the expected behaviour, but that is not the behaviour that I am getting. However, when I created a simple model, I could not recreate the issue. I will check for other issues that might be affecting my measures. Thanks for your help!