Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
105 | |
86 | |
74 | |
66 |
User | Count |
---|---|
126 | |
111 | |
100 | |
83 | |
71 |