Forum Discussion
Daily Transactions Bypassing Dates
- 5 years ago
Hi Anonymous ,
IF you want to create a new coulumn to calculate output,use the following:
out1 = SUM('Table'[current_sales_output])/COUNTROWS('Table')And if you want to create a measure to calculate it ,use the following :
out2 = CALCULATE(SUM('Table'[current_sales_output])/COUNTROWS('Table'),ALL('Table'))Final output:
Wish it is helpful for you!
Best Regards
Lucien
Why 5 for each non-total row? You want to show the average sales?
- Anonymous5 years agoNot applicable
AlexisOlson I chose 5 for each non-total row because it was divisible by 7 (as in 7 days). I could have chosen a better number but the goal of my example was to show an example that would be simple and easy to understand. Apologies if it is confusing.
- AlexisOlson5 years ago
Super User
I'm asking what it represents since 5 is clearly not the total across all dates that you are asking for in your original post but rather the total distributed equally across the dates (which you never mentioned as far as I can tell).
- Anonymous5 years agoNot applicable
AlexisOlson The 5 represents the equal distributed total from the sample total of 35 across all of the dates. Ultimately, the business requirements is to look at sales over each quarter. I am replicating a report that was already created which had a calculated column dividing total sales / 90 days.
Please let me know if this can help or is still confusing.