I am building custom Calendar in PowerBI.
For Month number I used the following formula:
I got month numbers. After creatin several more collumns I marked the table as a date table and all collumns turned to errors.
The error message i got from PowerBI: Column referebce to 'dDate' cannot be used with a variation 'Month' because it does not have any.
Similar error I got for Year column but with 'Year'.
So I rebuilt the formular in other manner that worked.
Any idea why PowerBI don't like the first syntax?
For Month number I used the following formula:
Code:
=dDate[Date].[MonthNo]
The error message i got from PowerBI: Column referebce to 'dDate' cannot be used with a variation 'Month' because it does not have any.
Similar error I got for Year column but with 'Year'.
So I rebuilt the formular in other manner that worked.
Code:
=MONTH(dDate[Date])
Any idea why PowerBI don't like the first syntax?