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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

How to remove row where all measure containing 0 value.

demo1.png

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

There are 2 methods to exclude the rows which the values of Measure_1 and Measure_2:

1. Make some adjustments on the formula of Measure_1 and Measure_2, add a condition for the final return value as below: 

if ([final_value] = 0, BLANK (), [final_value])

  You can refer the solution in this thread...

2. Exclude the rows with value "0" by Filters pane

exclude rows.JPG

Best Regards

Rena

 

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks 

But with this approach,one measure containing 0 value will also be removed.Attaching file for your reference.

if i use this filter,Name column with Ajay will also be removed.Please note all are measure not column.Column can be used in slicer or filter but not measure.12.png

Hi @Anonymous ,

Please try to add one condition in one of these two measures as below:

if ( [Measure_1]=0 && [final_value] = 0, BLANK (), [final_value])

Updated.JPG

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

HII

I am sorry,i am not getting desired result.Can u please take my data and share full dax formulae.

Sorry for bugging you again.

 

Thanks

Hi @Anonymous ,

If your problem still not be resolved, could you please provide more sample data and the formula of Measure_1 and Measure_2 refer in your previous post? It is better if you can provide your sample PBIX file. Thanks a lot.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Yes the Filters pane?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.