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 All,
I'd like to graph the average number of tickets by weekday over each week
Date , number of tickets , AVG
01-01 , 20 , 20
02-01 , 30 , 25
03-01 , 25 , 25
04-01 , 40 , 28,75
Solved! Go to Solution.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
Test:
You may create a measure as below.
AVG =
var _date = SELECTEDVALUE('Test'[Date])
return
AVERAGEX(
FILTER(
ALLSELECTED(Test),
Test[Date]<=_date
),
Test[num of tickets]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
Test:
You may create a measure as below.
AVG =
var _date = SELECTEDVALUE('Test'[Date])
return
AVERAGEX(
FILTER(
ALLSELECTED(Test),
Test[Date]<=_date
),
Test[num of tickets]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I am getting this results.
Do you know what is going wrong here?
@Anonymous Replace semicolon with comma.
I did, but I am getting the same result
Hi @v-alq-msft When I execute this measure I am getting the following result:
In case you want daily Avg to reset at week. Then look at WTD in the given file and use Average Aggregation.
If you are looking for weekly Avg Then use like
CALCULATE(Average(Sales[Net Sales]),FILTER(all('Date'), 'Date'[Week Rank]<=max('Date'[Week Rank])))
https://www.dropbox.com/s/d9898a48e76wmvl/sales_analytics_weekWise.pbix?dl=0
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |