

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bar chart with averages per day of week
Hi, I am trying to build a bar chart with average sales per day of the week for the chosen period, but my formula returns Sales (not Average sales). What is wrong? Thank you!
avg(
aggr( Sum(Sales), [DayOfWeek_Field] )
)
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
maybe, as dimension, put DayOfWeek_Field and as a measure:Avg(Sales)?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you doing this in a text box object or a table?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bar chart..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's right... just totally ignored the title of the post


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it's not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you excpect as a result?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be like this
Avg(Aggr(Sum(Sales), DayField))


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Average sales by day of week:
If i choose March, it should return Sum(<Monday> Sales)/count(<Monday> DaysOfWeek) and put it in the first Bar.
BTW, this works form me - I just wanted to apply a nicer solution.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved.
I think I got the logic.
I tried to split by DayOfWeek in the formula but as long as it is already done by setting a Dimension, the [Date] field in the formula will suffice.
Thank you!
