The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
Solved! Go to Solution.
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"
)
)
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
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"
)
)
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