Forum Discussion
Average Count Per Day/Week/Month Card
Hi GlitchedDuck ,
Assuming you are looking to discount invoices in your fact table.
Invoice Count = DISTINCTCOUNT(Table[InvoiceColumn])
Day = Averagex(Values(DateTable[Day]), [Invoice Count])
Week = Averagex(Values(DateTable[Week]), [Invoice Count])
Month = Averagex(Values(DateTable[Month]), [Invoice Count])
HTH
- GlitchedDuck4 years agoFrequent Visitor
Thist just seems to be giving me back the total number of invoices
- Tahreem244 years agoSuper User
GlitchedDuck Wrap it with DAY function.
Day = Averagex(Values(DAY(DateTable[DateColumn])), [Invoice Count])
- davehus4 years agoMemorable Member
Have you a date table linked to your Invoice Header? The Date part of the measure I provided needs to be passed through the date table and not the fact table. Hence why you're getting everything. It provides the context for the average.
- GlitchedDuck4 years agoFrequent Visitor
I have a Date_Dim table thats joins to my Invoice_Table and it shows the same results. I can do an actual count by day with no issues, but when i add the average it gives me a total count of invoices