Forum Discussion
Getting day name using calender table created using Dax
I created small Calender table using below.
Anonymous
You should add as a new column not a measure to your calendar table:
Create a new column in your column in your calendar table with
Day of Week Name = FORMAT('Calendar'[Date],"dddd")
Then, create a relationship between the Calendar[Date] and Daily Click Data table
3 Replies
- FowmySuper User
Anonymous
You should add as a new column not a measure to your calendar table:
Create a new column in your column in your calendar table with
Day of Week Name = FORMAT('Calendar'[Date],"dddd")
Then, create a relationship between the Calendar[Date] and Daily Click Data table - RealSlimShadyAdvocate I
Hey guys,
There is an easier way to do this, and Power bi will still recognize it as a date! (It will sort monday to friday instead of alphabetical.)
Create a new column
Day of Week Name = [Date]
[Date] is whatever the column name is of the date you want abbreviated.
In column tools, First make sure the Data type of the new column is date, then with the new column selected, type ddd into the format box. (It won't suggest it but you can still type it manually.) hit enter and boom there it is.......
You can type out any date format you want. from here: https://learn.microsoft.com/en-us/dax/format-function-dax#custom-datetime-formats
I just stumbled across this on accident. I have never seen anyone else suggest this method on any forums.
Hopefully this helps .
SlimShady
- Mohammad_RefaeiSolution Specialist
Day Of Week Name could be added as a column to your Calendar table which I assume has a relathionship to source - Daily Click Data table. In your chart use the day name from the Calendar table and aggregate the click values from the daily click data table.