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

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

Reply
Applicable88
Impactful Individual
Impactful Individual

Filterconditions wrapped in a summarize() calculated table not filtering correctly

Hello,

 

I have a facttable and I want to filter and group it at the same time. I wrote following calculated table function:

Summarize = SUMMARIZE('Facttable',Table1[Materialnumber,"count",CALCULATE(COUNT('Facttable[Order]),'Facttable'[Ordertype] in {"3BLL","3PP"} ,NOT(CONTAINSSTRING('FAIS'[Typestatus],"Delivered")),'Facttable'[Status] <> "finished",'Facttable'[Category] <> "Planned"))
As you can see there are quite some conditions.
Afterwards for example I put every column in a table where I can double check with the powerbi filterpane if everything filtered out correctly. And its not. For example there are still "Planned" orders in the column Category in my new calculated table, whereas the function should filtered all which are not "Planned".  Also other filters also haven't filtered the other conditions correctly
 
The syntax was right, but why the summarized table isn't filtered correctly? Is it not possible to filter things out this way?
Which syntax is more appropriate for that kind of filtering?
Thank you very much in advance.
Best.
1 REPLY 1
Icey
Community Support
Community Support

Hi @Applicable88 ,

 

I create a sample for test. And there is no issue. Please check if there is any difference compared to your scenario.

Summarize =
SUMMARIZE (
    'Facttable',
    Table1[Materialnumber],
    "count",
        CALCULATE (
            COUNT ( 'Facttable'[Order] ),
            'Facttable'[Ordertype] IN { "3BLL", "3PP" },
            NOT ( CONTAINSSTRING ( 'FAIS'[Typestatus], "Delivered" ) ),
            'Facttable'[Status] <> "finished",
            'Facttable'[Category] <> "Planned"
        )
)

sample.PNGsummarize.PNG

 

 

Best regards

Icey

 

If this post helps,then please consider accepting it as the solution to help other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors