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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
gusdcruz
Helper I
Helper I

empty rows

Hi,

I have the following sales order, each line is a product
Sales orderSales order

when I try to create a visual with PGM (profit gross margin), I get this useless extra row just because PGM is 0.00. As you can see we do have products with sales tonnage and 0.00 margin, so I want to keep products with tonnage, but I want to remove the products with no tonnage

 

Capture.JPG

 

I tried to go to Query and filter by empty or blank rows, but when I go to query this is what I found.

0% is empty, so I cannt remove empty

Capture.JPG

 

and I cannot removed base on blank, because this option doesnt show up in the list below

Capture2.JPG

Does anyone have a suggestion on how to handle this?

thank you

Gustavo

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

Create a measure for Total PGM that would be like this:

Total PGM = 
VAR TotalPGM = SUM(Data[PGM])
RETURN
IF(TotalPGM = 0,BLANK(),TotalPGM)

If PGM is 0, it will return blank and not zero, and won't populate a visual.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
edhans
Community Champion
Community Champion

Create a measure for Total PGM that would be like this:

Total PGM = 
VAR TotalPGM = SUM(Data[PGM])
RETURN
IF(TotalPGM = 0,BLANK(),TotalPGM)

If PGM is 0, it will return blank and not zero, and won't populate a visual.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

thank you

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.