Forum Discussion
Add weekday to hierarchy
- 5 years ago
alevandenes You can use this way .
step 1 : Create a Calender using below dax .Calender = ADDCOLUMNS( CALENDAR(MIN(data[Order Date]),MAX(data[Order Date])),"Year",YEAR([Date]), "Monthnum",MONTH([Date]),"Month Name ", FORMAT([Date],"mmmm"), "Day", DAY([Date]),"Day of Week ", FORMAT([Date],"dddd"))
and create a custom hierarchy like month name , Day ,day name . then drag that in your calculation matrix .
* Tested on a sample public datasetor Step 2 Create A new column using these dax function .
"Day of Week ", FORMAT([Date],"dddd").
alevandenes You can go to transform data then click on
table name => Work data coloumn => Add coloumn then date => name of the day => you will get name of the day column name => close and apply once loaded then drag that in your work date slicer =>Bingo..
Final solution :
- alevandenes5 years ago
Helper IV
Hi HarishKM
this is my starting point (see screenshot below). the thing is i dont want to lose the day number. I would like to see both that and the weekday.
in the way that you proposed, results would be grouped into weekdays but in this case i would like to keep them separated into days
Thanks a lot already for your support on this
Kind regards,
Alessandra- HarishKM5 years ago
Super User
alevandenes You can use this way .
step 1 : Create a Calender using below dax .Calender = ADDCOLUMNS( CALENDAR(MIN(data[Order Date]),MAX(data[Order Date])),"Year",YEAR([Date]), "Monthnum",MONTH([Date]),"Month Name ", FORMAT([Date],"mmmm"), "Day", DAY([Date]),"Day of Week ", FORMAT([Date],"dddd"))
and create a custom hierarchy like month name , Day ,day name . then drag that in your calculation matrix .
* Tested on a sample public datasetor Step 2 Create A new column using these dax function .
"Day of Week ", FORMAT([Date],"dddd").