Forum Discussion
jithesh
5 years agoNew Member
Total in the bar chart
Hi, I have month on month sales data. I want to show the total also in the graph. I want sales in the X axis and the managre names in the Y axis. Month as Legend. Manager Sales Month ...
- 5 years ago
Hi, jithesh
It’s my pleasure to answer for you.
According to your description,I think you may need to create a table with a single column,then use this column in the visual instead of 'manager',then create a measure instead of values.
Like this:
Table 2 = UNION(DISTINCT('Table (2)'[Manager]),ROW("Manager","Total")) Measure = IF ( SELECTEDVALUE ( 'Table 2'[Manager] ) = "Total", SUMX ( FILTER ( ALL ( 'Table (2)' ), [Month] = SELECTEDVALUE ( 'Table (2)'[Month] ) ), [Sales] ), SUMX ( FILTER ( ALL ( 'Table (2)' ), [Month] = SELECTEDVALUE ( 'Table (2)'[Month] ) && [Manager] = SELECTEDVALUE ( 'Table 2'[Manager] ) ), [Sales] ) )Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PhilipTreacy
Super User
5 years ago