Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
i'm trying to implement a measure but i've to filter with 4 ou 5 criterias.
The filter in calculate only accepts 2 arguments. How can i make this ?
thanks,
JR
Solved! Go to Solution.
Hello,
i've reached a solution. What i've done is use the switch to contain all the formulas of the metrics and create a general metric that gives all the values.
Thanks for the help,
JR
Hi @jppuam
https://docs.microsoft.com/en-us/dax/filter-function-dax
you can try this, e.g.
Measure = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[Date]>=DATE(2021,4,1) && 'Table'[Region]="Region2" && 'Table'[Status] in {"Status1","Status3"}))
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hello,
i've reached a solution. What i've done is use the switch to contain all the formulas of the metrics and create a general metric that gives all the values.
Thanks for the help,
JR
Hi @jppuam
thanks for your reply, could you close this thread by kindly accept the answer helpful as the solution. so the others can find it more quickly.
if you have question later, you can also add question in this thread or create a new one.
really appreciate!
Best Regards,
Community Support Team _Tang
@jppuam In the filter param of CALCULATE use commas to separate your filter statements or use FILTER( ... ).
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
87 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |