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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Analitika
Post Prodigy
Post Prodigy

Can't exclude some data from visual in Power BI

Hi,

 

I would like to exclude some data using dax formula but it was unsucessfull. Here is dax:

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

    )
)

I am not getting result that data Skola will be exluded. What I am  doing wrong?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Analitika ,

Please try to update the formula of measure [_Gauta, EUR] as below, you can find the details in the attachment.

_Gauta, EUR =
CALCULATE (
    [__Lik_Suma],
    FILTER (
        _APV,
        (
            CONTAINSSTRING ( [apyvarta.operacija], "Pajamavimas" )
                || CONTAINSSTRING ( [apyvarta.operacija], "Gauta" )
                || CONTAINSSTRING ( [apyvarta.operacija], "Pradinis" )
        )
            && [Prekės pavadinimas] <> "Skola"
            && [apyvarta.operacija] <> "Turto pajamavimas"
    )
)

yingyinr_0-1656297207451.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Analitika ,

Please try to update the formula of measure [_Gauta, EUR] as below, you can find the details in the attachment.

_Gauta, EUR =
CALCULATE (
    [__Lik_Suma],
    FILTER (
        _APV,
        (
            CONTAINSSTRING ( [apyvarta.operacija], "Pajamavimas" )
                || CONTAINSSTRING ( [apyvarta.operacija], "Gauta" )
                || CONTAINSSTRING ( [apyvarta.operacija], "Pradinis" )
        )
            && [Prekės pavadinimas] <> "Skola"
            && [apyvarta.operacija] <> "Turto pajamavimas"
    )
)

yingyinr_0-1656297207451.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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