Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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 slicer.
I am using the selected dates all over the reports in measures. Year(C) for comparison.
But data is not coming up properly. When i am trying C = DATE(2018,12,31) then its working as expected but not for C(DATE). The Date format is also same.
Can anybody help me with this issue.
Solved! Go to Solution.
Hi @Anonymous,
I modify the measure based on your data to return Year(measure) value:
Best Regards,
Qiuyun Yu
Hi @Anonymous,
You can create a measure below to get selected value in the slicer:
Best Regards,
Qiuyun Yu
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.
Hi @Anonymous,
I modify the measure based on your data to return Year(measure) value:
Best Regards,
Qiuyun Yu
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 35 | |
| 31 | |
| 27 |