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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

exclude blank rows in new table

I created an new table where i summarized the sale by product group.
Some product groups have no value.. what dax formula should I use in order to exclude them

thank you
2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Could you post your table structures with some sample data, and the formula you're using to create the new summarized table?

 

Based on my test, if I use SUMMARIZECOLUMNS Function (DAX) to create the summarized table, the product groups that have no value will be excluded by default. Smiley Happy

 

Summarize Table = SUMMARIZECOLUMNS ( Table1[Product group], "Total Sales", SUM ( Table1[sales] ) )

 

Regards

Anonymous
Not applicable

Hi

 

  Use the below Script and consider this measure as final one instead of the existing one.

 

NewMeasure = CALCULATE(
    SUM( Table1[Value] )
    ,NOT( ISBLANK( Table1[Id] ) )
)

Replace the Table1 with your table or query name and id with your product Group column (which has no value or empty)

 

Thanks

Hari

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.