Forum Discussion

AnaAlbano's avatar
AnaAlbano
Helper I
3 years ago
Solved

How to format % and text

Hello community! Does anywone know if there is a way that I could create a chart like this, with the condition if is less the 1%, then appears <1%? Thank you! Ana
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi ,  AnaAlbano 

    According to your description, you want to custom your dara label in your visual.

    For your need , you can use the new feature in Power BI Desktop, you can open it in the "Options->Preview features", if you do not have it , you need to update your Desktop version:

     

    Then here are the steps you can refer to :
    (1)This is my test data:

    I create a measure to show the percentage in the visual:

    Percentage Measure = SUM('Table'[Value])
     
    (2)Then we can open the dynamic format for this measure:
    Then we can put this in the dax box:
    IF([Percentage Measure]<0.01,"<1%","0%")
     
    Then we can meet your need , the result is as follows: 

     

    For more information, you can refer to :
    Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly