Forum Discussion
CTH2022
4 years agoFrequent Visitor
Label on stacked column chart
Have the following data set. Apple 10 Orange 20 Mango ALL How to show ALL as label on the chart?
- Anonymous4 years ago
Hi CTH2022 ,
I updated the sample pbix file(see attachment), please check whether that is what you want. You can update the formula of Measure as below, the part with red font is updated ones....
Measure =VAR _fruitswithall =CALCULATETABLE (VALUES ( 'Table'[Fruit] ),FILTER ( 'Table', 'Table'[Type] = "ALL" ))RETURNIF (SELECTEDVALUE ( 'Table'[Fruit] ) IN _fruitswithall,"ALL",CONCATENATE ( [Count], "" ))Best Regards
CTH2022
4 years agoFrequent Visitor
Say if the data is updated as follow the next day, I want A:LL to be shown on Orange bar. Is there a way to change to measure to take care of this automatically?
- Anonymous4 years agoNot applicable
Hi CTH2022 ,
I updated the sample pbix file(see attachment), please check whether that is what you want. You can update the formula of Measure as below, the part with red font is updated ones....
Measure =VAR _fruitswithall =CALCULATETABLE (VALUES ( 'Table'[Fruit] ),FILTER ( 'Table', 'Table'[Type] = "ALL" ))RETURNIF (SELECTEDVALUE ( 'Table'[Fruit] ) IN _fruitswithall,"ALL",CONCATENATE ( [Count], "" ))Best Regards
- CTH20224 years agoFrequent Visitor
Yes..This is what I wanted to to do. Thanks for the great hlep.