Forum Discussion
Bryanna
Helper II
3 years agoAverages to populate in missing dates
Hi, I have a table where i only have about 1 months worth of data at any given time. I would like to take the average of these values and have the average populate for Jan 2023 to current date ak...
- 3 years ago
I expected that. It's ALLSELECTED that is doing the stange things 😅
Please try
Measure2 =
VAR AverageValue =
AVERAGEX ( ALLSELECTED ( 'Calendar Table'[Date] ), [Manual Appts Calc] )
RETURN
SUMX (
VALUES ( 'Calendar Table'[Date] ),
COALESCE ( [Manual Appts Calc], AverageValue )
)
tamerj1
Community Champion
3 years agoI expected that. It's ALLSELECTED that is doing the stange things 😅
Please try
Measure2 =
VAR AverageValue =
AVERAGEX ( ALLSELECTED ( 'Calendar Table'[Date] ), [Manual Appts Calc] )
RETURN
SUMX (
VALUES ( 'Calendar Table'[Date] ),
COALESCE ( [Manual Appts Calc], AverageValue )
)
Bryanna
Helper II
3 years agoYay, that worked!! thank you so much!