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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors