Forum Discussion
7-day Rolling Average help
Thank you. I followed the link and watched the video as well. Learned a lot but it's still a bit advanced for me. Below is my attempt at using that measure and replacing it with my own tables, which did not work. Any tips on where I went wrong?
Thanks again for the video, I appreciated your explanation of VAR, which was new to me.
khat What does "See details" say?
- khat3 years agoRegular Visitor
Hi Greg_Deckler
Here is the text (image below):
Error Message:
MdxScript(Model) (13, 28) Calculation error in measure 'DateInspected'[Better Rolling Average]: The function SUM cannot work with values of type String.
I chose the DateInspection(ProductDisposition.Type) table because that is what I need counted and it was what I thought most closely matched your example, should I have used the Daily Scrap Count measure instead?
Thank you again for your help
- Greg_Deckler3 years ago
Community Champion
khat You either need to change your Type column to a number or use a different aggregator like COUNT. Your Type column is Text right now so you can't SUM a Text column.