on 11-11-2022 8:52 AM
Hi,
I have data regarding different material types, which are all sold for different selling prices.
Now I wish to create a table in a story which indicates the selling price for every element sold, and also the delta/difference between this element and the average selling price for the corresponding material type. Note that I thus have multiple averages within the dataset. I do NOT wish to use a data action since I would like to focus on reporting.
Thus, imagine a dataset like this:
The average price material type A is sold for is (500+600+650)/3 = 583.33
Therefore, the delta for item A sold on 01-01-2022 is 500-583.33 = -83.33
I would like to automatically calculate this for every item sold, matching the average corresponding with its material type.
I have so far created a table which calculates the average by Aggregation. I have chosen Aggregation with Account = Price and used OrderID (unique) as the aggregation dimension. This displays the following table.
However, if I adjust the table layout to get each individual selling in a row, the average of course also changes and I cannot subtract the two.
How am I supposed to do this?
Hi Karlijn, for your use case I'd recommend generating averages with restricted measures and constant selection within the table itself. Me and anna.burkhardt actually did a blog series on the topic which you can find here.
Any further questions feel free to reach out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.