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
marcin_wozniak
Frequent Visitor

SUMMARIZECOLUMNS: Excluding rows with blank values in one of the colums

Hi. I am creating a new table using summarize columns, with the following expression

 

 

Table = SUMMARIZECOLUMNS(sap_account_data[company];sap_account_data[account_number];sap_account_data[year];sap_account_data[month];sap_account_data[status];"Category_L1";"";"Category_L2";"Turnover";"Value";CALCULATE(sap_account_data[Amount];SAP_Dict[L8]="Turnover - External"))

I want to limit the output of the formula and exclude rows generated by the formula that have are BLANK in column "Value"

 

Any tips on how to to that?

 

Przechwytywanie.PNG

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @marcin_wozniak,

 

Have you solved the problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share some data sample and your desired output so that we could help further on it?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TomMartens
Super User
Super User

Hey,

 

you can use something like this

CALCULATETABLE(
    ADDCOLUMNS(
        SUMMARIZE(
            'Table1'
            ,Table1[category]
        )
    ,"myamount",CALCULATE(SUM('Table1'[amount]))
    )
    ,'Table1'[value] <> BLANK()
)

Just wrap CALCULATETABLE() around your summarize and use

 

,'Table1'[value] <> BLANK()

to filter out the rows that are blank in the column.

 

Hopefully this is what you are looking for

 

I'm wondering if this a a direct query connection to your source data, if not you may also consider to filter out the rows that have blank values inside the column using Power Query. I would consider this.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.