Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ShrimpSurf
Helper II
Helper II

Do Not Show Zero Value

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

 

Screen Shot 2021-12-17 at 6.31.31 PM.jpg

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

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.

vkalyjmsft_2-1640143932450.png

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.

 

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

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.

vkalyjmsft_2-1640143932450.png

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.

 

parry2k
Super User
Super User

@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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

They are all measures.

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.