The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |
User | Count |
---|---|
27 | |
18 | |
13 | |
9 | |
5 |