Forum Discussion
Anonymous
7 years agoNot applicable
Date selection using MAX(Date) is not working
Hello, I have created table in power BI desktop with hard coded dates which contains the last date of each year. I have created measure C as C = MAX(Date). I am using this Date column as slic...
- 7 years ago
Hi Anonymous,
I modify the measure based on your data to return Year(measure) value:
Measure = var d=IF(ISFILTERED('Table1'[date]),SELECTEDVALUE('Table1'[date]),"No Selection")returnIF(ISFILTERED(Table1[Date]),YEAR(d),BLANK())Please check if attached pbix file meet your requirement.Best Regards,
Qiuyun Yu
v-qiuyu-msft
Community Support
7 years agoHi Anonymous,
You can create a measure below to get selected value in the slicer:
Measure = IF(ISFILTERED('Calendar'[date]),SELECTEDVALUE('Calendar'[date]),"No Selection")
Best Regards,
Qiuyun Yu
- Anonymous7 years agoNot applicable
I tried the above soplution but the data is not getting filtered when i am trying to use it in measure Year(Measure).
I have also attached the data i have entered in Power BI table.
- v-qiuyu-msft7 years ago
Community Support
Hi Anonymous,
I modify the measure based on your data to return Year(measure) value:
Measure = var d=IF(ISFILTERED('Table1'[date]),SELECTEDVALUE('Table1'[date]),"No Selection")returnIF(ISFILTERED(Table1[Date]),YEAR(d),BLANK())Please check if attached pbix file meet your requirement.Best Regards,
Qiuyun Yu