Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi. I have inserted a column to identify the days of the week, but I'd like to show them as text, rather than the number of their position in the week. Is this possible.
Solved! Go to Solution.
Hello @joannerw,
Please use the following DAX formula:
Weekdays = FORMAT(Date[Date],"dddd")
Hope this helps.
If you have a Date column, you can do this create a new column:
WeekdayText = FORMAT ( 'Table'[Date], "dddd" )
This will create a column with Sunday, Monday, Tuesday, etc. Use "ddd" if you want Sun, Mon, Tue....
Then highlight the new column, click the Column Tools tab, click the Sort by Column button and select the week number column you previously created. This will sort the text values, ensuring they are in proper order when you add them to a visual.
If this solves your question, please mark it as the solution. Thanks!
Thanks for your response. I'm new to Power BI and not sure where I enter this formula. Is it through the New Column icon on the Calculations tab or the query editor. I attempted both but it didn't work for me. can you please provide more detail on how to use the formula??
In the DATA View, where you can see data. In-home tab , you have an option for new Column. Use that to have this formula
I don't have the Data view available, only Report or Model. I'm using the desktop version and am running the September 2019 version and also using a direct query. Maybe I don't have access to the Data view.
In Direct Query, you won't be able to see the data. Did you try as I suggested?
Again, i'm not sure where to use this formula. I'm unable to create a new table or see the data view....
Hello @joannerw,
Suppose your date table is named as 'Calendar', then you created a new calculated column in that table and use the formula as
Weekdays = FORMAT(Calendar[Date],"dddd")
Please provide what error/result are you getting using this query.
PS:Calendar table can be created using CALENDAR DAX function.
User | Count |
---|---|
117 | |
75 | |
62 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |