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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.