Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I want to calculate the average of each day's count. Since the count for the same is the same, I want each day's count be only calculated once.
Here is what I want:
Average = (100+200+300+400) / 31
Divided by 31 because there are 31 days in May.
Is it possible to achieve this by writing measures?
Any help is appreciated.
Solved! Go to Solution.
@Anonymous
you can try this
Measure =
VAR _sum=SUMX(SUMMARIZE('Table','Table'[date],'Table'[count]),'Table'[count])
VAR _days=DATEDIFF(min('Table'[date]),EDATE(min('Table'[date]),1),DAY)
RETURN _sum/_days
Proud to be a Super User!
@Anonymous , Try one of the two
Averagex(summarize(Table,table[Date],"_1",[count]),[_1]) // Or use sum(Table[count])
Averagex(values(table[Date]),[count]) // Or use sum(Table[count])
Hi,
You may download my PBI file from here.
Hope this helps.
@Anonymous , Try one of the two
Averagex(summarize(Table,table[Date],"_1",[count]),[_1]) // Or use sum(Table[count])
Averagex(values(table[Date]),[count]) // Or use sum(Table[count])
@Anonymous
you can try this
Measure =
VAR _sum=SUMX(SUMMARIZE('Table','Table'[date],'Table'[count]),'Table'[count])
VAR _days=DATEDIFF(min('Table'[date]),EDATE(min('Table'[date]),1),DAY)
RETURN _sum/_days
Proud to be a Super User!
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
52 | |
41 | |
39 | |
37 |