The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
80 | |
66 | |
53 | |
52 |
User | Count |
---|---|
121 | |
117 | |
77 | |
64 | |
63 |