Join 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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am using this expression in filter part of calculate function:
However Power BI doesn't calculate it and gives this error:
"A function 'FIRSTDATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed."
I'm just trying to compare the first date with another date and don't understand what is wrong here. Is there something to be corrected or a workaround to be used?
Solved! Go to Solution.
@Anonymous , for the first date of last month
eomonth('Calendar'[date],-2)+1
In case of measure you might have to use
eomonth(max('Calendar'[date]) ,-2)+1
@Anonymous , for the first date of last month
eomonth('Calendar'[date],-2)+1
In case of measure you might have to use
eomonth(max('Calendar'[date]) ,-2)+1
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.