Forum Discussion

David_1970's avatar
David_1970
Frequent Visitor
8 years ago
Solved

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
  • Hi,

     

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

  • 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())




    Best Regards,
    Angelia

4 Replies

  • Hi,

     

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

  • Phil_Seamark's avatar
    Phil_Seamark
    Microsoft Employee

    Hi David_1970

     

    Please try this calculated table

     

    NewTableName = 
            FILTER(Table1,
    		'Table1'[Revenue]<> BLANK()
    		)
  • CahabaData's avatar
    CahabaData
    Memorable Member

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

                    )

  • v-huizhn-msft's avatar
    v-huizhn-msft
    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())




    Best Regards,
    Angelia