Forum Discussion
Average $ per weekday
- 4 years ago
Hi mcmullenrich
Sorry for the late reply. Here is the workable solution as per sample sampleAverage of Amt := DIVIDE ( SUM ( Combined[Amount] ), COUNTROWS ( FILTER ( 'Calendar', NOT ISBLANK ( Combined[Sum of Amt] ) ) ) )
Hi mcmullenrich
you can create a new calculated column for weekday
FORMAT ( WEEKDAY(Table[Date]), "dddd" )
then use it in your visual with simple AVERAGE Measure
Thanks tamerj1. I tried this and got the average of all the individual transaction instead of the average daily total for each day.
- tamerj14 years ago
Community Champion
Hi mcmullenrich
Try
DIVIDE (SUM (Table[Value]), CALCULATE (SUM(Table[Value]), ALLSELECTED(Table[Weekday])))
- mcmullenrich4 years agoFrequent Visitor
Hmm...that got me a 1 for each day. I think I'm using the wrong Table[Value] on one of them:
Average per Weekday :=
DIVIDE (
SUM ( Combined[Amount] ),
CALCULATE ( SUM ( Combined[Amount] ), ALLSELECTED ( 'Calendar'[Day Of Week] ) ),
0
)- tamerj14 years ago
Community Champion
I believe I misunderstood your reqyirement. You just want to divide over the number of frequency of the selected weeday. Therefore if you are using a date table just do:
Average per Weekday :=
DIVIDE (
SUM ( Combined[Amount] ),
COUNTROWS ( 'Calendar' )
)