Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 12 | |
| 10 |