Forum Discussion

CTH2022's avatar
CTH2022
Frequent Visitor
4 years ago
Solved

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?
  • Anonymous's avatar
    Anonymous
    4 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" )
    )
    RETURN
    IF (
    SELECTEDVALUE ( 'Table'[Fruit] ) I_fruitswithall,
    "ALL",
    CONCATENATE ( [Count], "" )
    )

    Best Regards