Forum Discussion

ShrimpSurf's avatar
ShrimpSurf
Helper II
4 years ago
Solved

Do Not Show Zero Value

Is there a realitively simple way to eliminate zero's from tables?

 

 

  • Hi ShrimpSurf ,

    If you want the value zero to be blank, I think you should modify the formula of the measure.

    If your original formula is 

    Measure= SUMX(FILTER('Table','Table'[Column2]=MAX('Table'[Column2])),'Table'[Column1]) 

    It should be changed to 

    Measure= 
    VAR _SUM=SUMX(FILTER('Table','Table'[Column2]=MAX('Table'[Column2])),'Table'[Column1])
    RETURN
    IF(_SUM=0,BLANK(),_SUM)

    Then select Show items with no data in the Rows.

    Best Regards,
    Community Support Team _ kalyj

     

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

     

3 Replies

  • ShrimpSurf what are you using, a measure, or direct column on the values? 

     

    New Measure = 
    VAR __sum = SUM ( Table[Value] )
    RETURN IF ( __sum <> 0, __sum )

     

    Follow us on LinkedIn

     

    Learn about conditional formatting at Microsoft Reactor

    My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

  • Hi ShrimpSurf ,

    If you want the value zero to be blank, I think you should modify the formula of the measure.

    If your original formula is 

    Measure= SUMX(FILTER('Table','Table'[Column2]=MAX('Table'[Column2])),'Table'[Column1]) 

    It should be changed to 

    Measure= 
    VAR _SUM=SUMX(FILTER('Table','Table'[Column2]=MAX('Table'[Column2])),'Table'[Column1])
    RETURN
    IF(_SUM=0,BLANK(),_SUM)

    Then select Show items with no data in the Rows.

    Best Regards,
    Community Support Team _ kalyj

     

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