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 September 15. Request your voucher.

Reply
David_1970
Frequent Visitor

Creating measure

 

How do I return a table excluding all rows where [Revenue] is blank, see example below. Which DAX function?

CustomerRevenueDisbursementDateMonth
1156 201701
236518201702
3 32201703
3 69201704
215254201705
532521201706
414569201707
226258201708
3 45201709
632652201710
152 201711
1123 201712
3 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

 

This can be done without a DAX formula.  In Power Query, one can simply filter the revenue column on >0.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @David_1970

 

Please try this calculated table

 

NewTableName = 
        FILTER(Table1,
		'Table1'[Revenue]<> BLANK()
		)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @David_1970,

As I tested, the formula @Phil_Seamark posted is right. Please click "New Table" under modeling on Home page(highlighted in yellow background), type the formula, you will get expected result. 

Table = FILTER(Table1,Table1[Revenue]<>BLANK())


1.PNG

Best Regards,
Angelia

View solution in original post

4 REPLIES 4
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @David_1970,

As I tested, the formula @Phil_Seamark posted is right. Please click "New Table" under modeling on Home page(highlighted in yellow background), type the formula, you will get expected result. 

Table = FILTER(Table1,Table1[Revenue]<>BLANK())


1.PNG

Best Regards,
Angelia

Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @David_1970

 

Please try this calculated table

 

NewTableName = 
        FILTER(Table1,
		'Table1'[Revenue]<> BLANK()
		)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Ashish_Mathur
Super User
Super User

Hi,

 

This can be done without a DAX formula.  In Power Query, one can simply filter the revenue column on >0.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
CahabaData
Memorable Member
Memorable Member

NewTableName = SUMMARIZE(
        FILTER(Table1,'Table1'[Field1]<> BLANK()),
            'Table1'[Field1],
            ‘Table1’[Field2]
             etc.

                )

www.CahabaData.com

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.