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.
@VilleMasa , 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
@VilleMasa , 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
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
104 | |
58 | |
45 | |
29 | |
24 |
User | Count |
---|---|
133 | |
94 | |
75 | |
44 | |
41 |