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 want to create a measure with a division :
- numerator = backlog
-denominator = the average of the number created ticket of the last week (the calculation = all the creation of the week divided by 5)
My issue is on the denominator, I have some difficulties to create it. I don't know how can I create an weekly average.
Can you help me on that point ?
Sincerely
Hi all,
I want to create a measure of the average of the last week, for example if I am in the 25th week of the year I want the average of the 24th week.
I found a way to calculate the average of the week (http://radacad.com/week-to-date-calculation-in-power-bi-with-dax) :
Hi @Anonymous,
Assuming the code you show it's working, this minot modification should do the job:
Week avg bis previous week = VAR CurrentDate = LASTDATE ( 'Date bis'[Date] ) VAR DayNumberOfWeek = WEEKDAY ( LASTDATE ( 'Date bis'[Date] ); 3 ) RETURN CALCULATE ( DIVIDE ( [Nb ticket]; 5 ); DATESBETWEEN ( 'Date bis'[Date]; DATEADD ( CurrentDate; ( -1 * DayNumberOfWeek ) - 7; DAY ); CurrentDate - 7 ) )
Hi @Anonymous
Assuming you have a date field along with each entry you can use a calculate function with filters to say the date created should be greater than today()-5 and less than today().
Hope this helps
Thanks,
George
Hi,
First thank you for your help.
Secondly, I try this :
I found a way to calculate the average of the week (http://radacad.com/week-to-date-calculation-in-power-bi-with-dax) :
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |