Forum Discussion
Total in the bar chart
- 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.
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.