Forum Discussion
To Calculate average including the dates where values are not present
Hi!
PremaBoddeda . Try like
sum(Table[Payment])/ (datediif(min(Table[Date]), max(Table[Date]), day) +1)
or
new measure = //joined date table
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
returnsum(Table[Payment])/ (datediif(_min, _max, day) +1)
3 Replies
- amitchandak
Super User
PremaBoddeda . Try like
sum(Table[Payment])/ (datediif(min(Table[Date]), max(Table[Date]), day) +1)
or
new measure = //joined date table
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
returnsum(Table[Payment])/ (datediif(_min, _max, day) +1)
- PremaBoddedaFrequent Visitor
It is working as expected when I placed that measure in table it is being total but while placing the measure in line y-axis in Dual Axis Visual I am unable to get the line in datelevel. So could you please suggest A solution for this. I am attaching the Screen shot for your reference
- PremaBoddedaFrequent Visitor
Thankyou so much amitchandak