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
Analitika
Post Prodigy
Post Prodigy

Wrong calculation measure in Power BI

Hello,

 

I would like to ask how to exclude additional type from table. 

_Gauta, EUR = 
CALCULATE(
    [__Lik_Suma]
    ,FILTER(
        _APV,
        (CONTAINSSTRING([apyvarta.operacija],"Pajamavimas") && not [apyvarta.operacija] in {"Turto pajamavimas"} )
        || CONTAINSSTRING([apyvarta.operacija],"Gauta")
        || CONTAINSSTRING([apyvarta.operacija],"Pradinis")

    )
)

When I add additional containsstring in formula nothing changes. For example, if I add && not  

not [apyvarta.operacija] in {"Skolos tiekejams"}. So what be correct solution?
2 REPLIES 2
Hariharan_R
Solution Sage
Solution Sage

Hi @Analitika 

You need to use your base column which contains the word. I think you are refering the measure and it will be always one value check. 

 

Also || you want to filter, isn't it? please add with in Filter.

 

Try like above.  

 

 

Result =
CALCULATE (
    SUM ( 'Table'[Value] ),
    FILTER (
        'Table',
        CONTAINSSTRING ( 'Table'[Category], "Pajamavimas" )
            && NOT 'Table'[Category]
                IN { "Turto pajamavimas" } || CONTAINSSTRING ( 'Table'[Category], "Gauta" )
                    || CONTAINSSTRING ( 'Table'[Category], "Pradinis" )
    )
)

 

 

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


But I need to not include this [apyvarta.operacija] in {"Skolos tiekejams"}. How to achieve this, I used not  [apyvarta.operacija] in {"Skolos tiekejams"}.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.