Forum Discussion
Anonymous
3 years agoNot applicable
Table averages not calculating properly when using a measure
Hi everyone, Hopefully an expert can help me solve this issue I'm having currently. I have a chart which is visualized based on category and date using the following measure: SKU Mix P...
amitchandak
Super User
3 years agoAnonymous , That is a simple avg for that you need a measure like
Averagex(Values( 'SKU Mix[Category] ) , DIVIDE (
CALCULATE ( SUM ( 'SKU Mix'[Qty] )),
CALCULATE ( SUM ( 'SKU Mix'[Qty] ), ALLEXCEPT ( 'SKU Mix','SKU Mix'[Date] ) )
))
You can use line in line Stacked column bar visual
Anonymous
3 years agoNot applicable
Thanks for the response!
So if I were to add one more top-level category that the SKU Mix (Category) is broken down into. How would I incoporate that? Currently if I add a "Product" filter, the percentages don't change dynamically to equal a total of 100% anymore.
Example (added a "Product" column which groups the Category" column into larger overall groups: