The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi
The aim is to calculate the average value per day of the week.
Table:
I only get the average per record and not the average per day of the week.
Maybe someone can help
Solved! Go to Solution.
Hi,
I revolved it:
Measure 1 = SUM(Table [aantal monsters])
measure 2 = AverageX ( VALUES(table[DATE]), [measure 1])
thx
@icturion , have date table, There you define a week and week rank as column
Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)
And use a measure like this
This Week = CALCULATE(AverageX(values(Date[Date]),Sum(Table[Antal monsters])), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
refer
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
I'm probably doing something wrong, because the results are wrong. Suppose on Sundays in September I took a total of 20 samples. so far September has had 2 Sundays. then the average should be 10 samples per Sunday.
hi @icturion
Please share your sample data and your expected output, that will be a great help.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Regards,
Lin
Hi,
I revolved it:
Measure 1 = SUM(Table [aantal monsters])
measure 2 = AverageX ( VALUES(table[DATE]), [measure 1])
thx
User | Count |
---|---|
69 | |
65 | |
63 | |
55 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
43 |