Forum Discussion

sakarim's avatar
sakarim
Frequent Visitor
5 years ago
Solved

Conditional data labels on graphs

Hi,   I work with health data and have to suppress counts of less than 5 on graphs. I am looking for a solution to display a data label on the chart once filters are applied to show "<5" where coun...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, sakarim 

    One way to achieve this is fixing the number format by using Tabular Editor in Power BI.

    Please check the below picture and the sample pbix file's link down below.

    I created a calculation group inside Tabular Editor in Power BI Desktop.

    If you go into the Tabular Editor, and if you check the "Format Striing Expression", you can see how I wrote DAX.

     

     

    https://www.dropbox.com/s/gbzuh1x2f2miism/Sakarim.pbix?dl=0 

     

    Hi, My name is Jihwan Kim.

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

    Linkedin: https://www.linkedin.com/in/jihwankim1975/