This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
I would like to make that if user select filter box it getting different values. Filter
I am having three different cases:
If I select Be kasos I should get value
Solved! Go to Solution.
Hi @Analitika ,
I create a sample to have a test. I think you can try this code to achieve your goal.
Sales Amount =
VAR _COUNT =
CALCULATE ( DISTINCTCOUNT ( 'Pajamu vaizdavimas'[Parinkimas 4] ) )
RETURN
IF (
ISFILTERED ( 'Pajamu vaizdavimas'[Parinkimas 4] ),
SWITCH (
TRUE (),
_COUNT = 2
&& MAX ( 'Pajamu vaizdavimas'[Parinkimas 4] ) IN { "Be kasos", "Su kasa" }, [USED OK Pardavimai],
_COUNT = 1
&& MAX ( 'Pajamu vaizdavimas'[Parinkimas 4] ) = "Be kasos", [USED Pardavimai be kasu],
_COUNT = 1
&& MAX ( 'Pajamu vaizdavimas'[Parinkimas 4] ) = "Su kasa", [USED OK Pardavimai],
0
),
0
)
In my sample [USED Pardavimai be kasu] = 1 and [USED OK Pardavimai] = 2. Result is as below.
No selection:
Select Be kasos:
Select Su kasa:
Select Both:
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Analitika ,
I create a sample to have a test. I think you can try this code to achieve your goal.
Sales Amount =
VAR _COUNT =
CALCULATE ( DISTINCTCOUNT ( 'Pajamu vaizdavimas'[Parinkimas 4] ) )
RETURN
IF (
ISFILTERED ( 'Pajamu vaizdavimas'[Parinkimas 4] ),
SWITCH (
TRUE (),
_COUNT = 2
&& MAX ( 'Pajamu vaizdavimas'[Parinkimas 4] ) IN { "Be kasos", "Su kasa" }, [USED OK Pardavimai],
_COUNT = 1
&& MAX ( 'Pajamu vaizdavimas'[Parinkimas 4] ) = "Be kasos", [USED Pardavimai be kasu],
_COUNT = 1
&& MAX ( 'Pajamu vaizdavimas'[Parinkimas 4] ) = "Su kasa", [USED OK Pardavimai],
0
),
0
)
In my sample [USED Pardavimai be kasu] = 1 and [USED OK Pardavimai] = 2. Result is as below.
No selection:
Select Be kasos:
Select Su kasa:
Select Both:
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 33 | |
| 23 | |
| 23 |