Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there,
I have a measure which I would like to divide the sum of by the number of days that have been selected on the filter.
As an example, I have the selected the last 18 calender months on my filter whilst filtering total revenue and I am looking to filter the revenue by the 547.50
Any help would be appreciated.
@Anonymous , a measure like
new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
Divide( sum(Table[Value]),datediff( _min ,_max,day)+1)
Hey Amita, I used Divide(Measure, COUNTROWS(Calender))
And it seems to have worked.
Can you see any issues with using this?
Best,
Hi @Anonymous ,
That should work if it is a standard calendar.
You could also consider if there are duplicate values or missing dates in the calendar table depending on your needs.
Best Regards,
Jay
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |