Forum Discussion

Romeshpsl's avatar
Romeshpsl
Icon for Advocate I rankAdvocate I
10 years ago

Surpress Zero values in Charts

 

How do I get the x axis lables disapprear from the chart when values are zero. I can't really filter out when loading data, as these lables are from a calculated column.

 

 

12 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Create a new measure something like below , add it to your chart 

    Measure = CALCULATE(SUM(Table1[Value]),Table1[Value]>0)

    • feelie75's avatar
      feelie75
      Icon for Helper I rankHelper I

      This worked perfect, thank you!! I'd like to add a word of caution though, I had to change the > to <> otherwise it bypassed negative values on a few months where we had negative sales due to Returns.

  • ankitpatira's avatar
    ankitpatira
    Icon for Community Champion rankCommunity Champion

    Romeshpsl for fields dropped onto visual you also have option to specify show items with no data which will take away blanks.

     

    • Romeshpsl's avatar
      Romeshpsl
      Icon for Advocate I rankAdvocate I

      Thanks guys. I tried the "show item with no data" but didn't work. I think it is because there are data but the amount is zero. So did bit of search and found another solution (similar to creating a measure, but without creating one) by applying a filter to show valvue greater than 0. See below.

      • deepvibha's avatar
        deepvibha
        Icon for Advocate II rankAdvocate II

        I am plotting a clustered column charts for various surgeries performed by a group of doctors for a particular day.

         

        Its not mandatory that all the doctors will perform all types of surgeries in a day. 

         

        If I apply filters to suppress Zero values on all types of surgeries, the chart goes blank.

         

        How do i achieve it?

    • Anonymous's avatar
      Anonymous
      Not applicable

      GREAT SOLUTION

  • Anonymous's avatar
    Anonymous
    Not applicable

    I had the same problem and just replaced the 0 values with null in the power query. It works for me!

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi everyone,

    I have the same issue with the matrix chart. I created a measure to calculate, so on the chart showing zero value. I want to suppress zero value (red color box below)

    Thank you!