Introduction To DAX
Date & Time Functions:-
New Table -
Why new table? -For Neat Analytics
How to Create?
Create DimDate and DimTime(Populate the data)
DimDate -
Date, YearNo, SemNo, QuarterNo, MonthNo, MonthName, WeekNo, DayNo, DayName
DimGeography -
Country, State, City
CALENDAR - CALENDAR(StartDate, EndDate) ,
CALENDAR(DATE(Year, Month, Day),DATE(Year, Month, Day))
CALENDARAUTO -It will not take any start date and end date.
Will give dates between Starting Date of minimum year and current date.
DATE - DATE(Year,Month,Day)
MONTH
YEAR
WEEKNUM
QUARTER
SEM - IF(Quarter<2, Sem1,Sem2)
TODAY ()
NOW ()
EOMONTH-End Date
DayName=FORMAT(Emp[Date],'DDDD')
MonthNumber=FORMAT(Emp[Date],'MM')
MonthName=FORMAT(Emp[Date],'MMMM')
1
Page
THARUN CHALLA 1