Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
Im trying to use CALCULATE with 2 filters:
Solved! Go to Solution.
Hi @luisreyes ,
Please try:
Measure =
CALCULATE(
SUM('Hoja2'[Cantidad]),
FILTER(
'Hoja2',
'Hoja2'[Tipo]="No Consumidos"
||'Hoja2'[Tipo]="Ligero No Consumido"
)
)
or
Measure =
CALCULATE(
SUM('Hoja2'[Cantidad]),
FILTER(
'Hoja2',
'Hoja2'[Tipo] IN {"No Consumidos","Ligero No Consumido"}
)
)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @luisreyes ,
Please try:
Measure =
CALCULATE(
SUM('Hoja2'[Cantidad]),
FILTER(
'Hoja2',
'Hoja2'[Tipo]="No Consumidos"
||'Hoja2'[Tipo]="Ligero No Consumido"
)
)
or
Measure =
CALCULATE(
SUM('Hoja2'[Cantidad]),
FILTER(
'Hoja2',
'Hoja2'[Tipo] IN {"No Consumidos","Ligero No Consumido"}
)
)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
You should be able to filter multiple columns with CALCULATE().
Can you please look at this link for concept and get back if you still have any questions 🙂
https://www.sqlbi.com/articles/specifying-multiple-filter-conditions-in-calculate/
Br
Marius
User | Count |
---|---|
98 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
58 |