Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi !
I have a new problem, my boss wants me to count the number of monday/... during the last 30days... I've try a lot of things but I'm still in trouble with that because I've find solutions with a DateTable and I can't use that...
Is there anyone with an idea?
Thx 🙂
Sq'
Solved! Go to Solution.
@Squalleh why can't you use a date table? that would be the easier to to do
it would be a simple measure
https://www.mattmasson.com/2014/02/creating-a-date-dimension-with-a-power-query-script/
no of mondays in last 30 days =
CALCULATE (
COUNTROWS ( date ),
FILTER (
date,
DATESBETWEEN ( date[date], DATEADD ( date[date], -30, DAY ), date[date] )
&& dayofweek = "monday"
)
)
Proud to be a Super User!
@Squalleh why can't you use a date table? that would be the easier to to do
it would be a simple measure
https://www.mattmasson.com/2014/02/creating-a-date-dimension-with-a-power-query-script/
no of mondays in last 30 days =
CALCULATE (
COUNTROWS ( date ),
FILTER (
date,
DATESBETWEEN ( date[date], DATEADD ( date[date], -30, DAY ), date[date] )
&& dayofweek = "monday"
)
)
Proud to be a Super User!
@vanessafvgthank you for your answer!
Finaly my boss accept to let me add a date table... so.... Problem solved!
Have a nice day!
Sq'
Hi,
Could you share how did you solved?
Thanks.
Mauricio
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |