day of week
3 Topicscount number of days in a month week
I'm trying to create a column that calculates the number of days within a week in month. for example week1 of june has the following dates: 1-6-2023 till 3-6-2023 so number of days =3 w2 dates 4-6-2023 till 10-6-2023 so number of days =7 and so on for every week in the monthSolved1.3KViews0likes3CommentsMeasure using DATEADD(), split by day of week.
With some help from this forum, I got the following measure set up: Year behind Avg Revenue = CALCULATE( AVERAGE('Growth Metrics'[Revenue]), DATEADD('Growth Metrics'[Date], -1, YEAR)) I use it to compare the the sales of each month, split by year: I'd like to create a similar visual, split not by month but by the day of the week. So that I could, for instance, compare avg sales on monday of 2018 to 2019. I have a datetable set up with all of the necessary information (yes, I know 'date' is misspelled. It's not my dataset): The problem is that when I try to plot 'weekday' on the X-axis of the aforementioned visual, I get the following error. I believe that this problems occurs because 'weekday' is not part of the date hierarchy of 'dat', and therefore not linked to the date in the way PBI wants it to be. I can think of a way to solve this issue using another table, but I'd prefer to solve this using in a more elegant way, like adding only one measure or perhaps just changing 'Avg Revenue Growth'. How would I go about fixing this? Thanks in advance!564Views0likes2CommentsWeekday as DAX measure and not as calculated column
Hi, I have a fact table and a calendar table with date. I need to show weekday name (for e.g. 1st Jan is Monday) as DAX measure in pivot table and not a calculated column in calendar table. I have tried using FORMAT function, its working fine when i use it in calendar table but i need weekday as measure because i have already put "Date" in rows in pivot table. Please help. Regards Harish RathoreSolved3.2KViews0likes4Comments