SanjeevKumar's avatar
SanjeevKumar
Frequent Visitor
5 years ago
Status:
New

Issue While Creating the Table with DAX Formula

Hi,

I Found a BUG while creating the Date Table with Dax Formula. Please find the details below.

 

After Creating the table, I tried to modify the name of the Column from "YEAR" (Which is in Caps letters) to "Year" (Small Letters) and I am getting an alert as "The column 'Year' in table 'Date' has invalid bindings specified".

Please solve this and you can find the DAX formula which was used by me for creating the table.

 

Date =
VAR vCalender =
CALENDARAUTO( )
VAR BaseCalenderColumns =
GENERATE(
vCalender,
VAR vBaseDate = [Date]
VAR vDay = DAY(vBaseDate)
VAR vMonth = MONTH(vBaseDate)
VAR vYearDate = YEAR(vBaseDate)
VAR vWEEK = WEEKNUM(vBaseDate)
VAR vWeekNo = WEEKDAY(vBaseDate,2)
VAR VQtr = QUARTER(vBaseDate)
Return ROW(
"YEAR", vYearDate,
"Month", vMonth,
"Month_Name", FORMAT(vBaseDate, "mmmm"),
"Day", vDay,
"Day_Name", FORMAT(vBaseDate, "dddd"),
"Day of Week", vWeekNo,
"Week_No", vWEEK,
"Quarter", FORMAT(vBaseDate, "\QQ"),
"Month_Year", FORMAT(vBaseDate, "mmm YY"),
"MonthYearNo", vYearDate*100+vMonth
)
)
Return
BaseCalenderColumns
 
 

4 Comments