Forum Discussion
SzymonKl
3 years agoHelper I
Day Name in DirectQuery
Could you kindly assist me in creating a measure to display the day name based on the 'ORDERS' table and the [ORDER_DATE] column? It's important to consider that we are working with DirectQuery, and ...
- 3 years ago
Hi Thanks for your support today 🙂
I was able to find the right solution, instead measure I create a new column :
Day Name = SWITCH(WEEKDAY('ORDERS'[ORDER_DATE]),1, "Sunday",2, "Monday",3, "Tuesday",4, "Wednesday",5, "Thursday",6, "Friday",7, "Saturday",BLANK())
SzymonKl
3 years agoHelper I
Thanks for solution unfortunetlly i getting the error :
johnyip
3 years agoSolution Sage
Sorry for the typo: it is MAX(
Day Name(MEASURE) = FORMAT(MAX('ORDERS'[ORDER_DATE]), "dddd")
- SzymonKl3 years agoHelper I
Thanks
I see the day name but unfortunately, instead of two records, I get much more. It seems that now the order has been assigned to each Wash Site. Wash Sites are stored in the 'WASH_SITES' table, column [NAME].
Without measure :
with measure:
- johnyip3 years agoSolution Sage
Please provide some sample fake data that follows the data structure of your actual data, and the relationship between them for checking.
- SzymonKl3 years agoHelper I
Hi Thanks for your support today 🙂
I was able to find the right solution, instead measure I create a new column :
Day Name = SWITCH(WEEKDAY('ORDERS'[ORDER_DATE]),1, "Sunday",2, "Monday",3, "Tuesday",4, "Wednesday",5, "Thursday",6, "Friday",7, "Saturday",BLANK())