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
Hi,
I am very new to DAX and Power Pivot and I'm trying to build a measure where I count all the invoices with status "open", "sent", "paid" and "overdue". I want my measure to ignore "cancelled" status of invoices.
I created this, but I am worried that it's inefficient because it uses Filter funcion in my measure.
=CALCULATE(SUM(f_invoices[revenue_czk]),
FILTER(f_invoices,
f_invoices[invoice_status]= "open" ||
f_invoices[invoice_status]= "paid" ||
f_invoices[invoice_status]= "sent" ||
f_invoices[invoice_status]= "overdue"
))
Is it OK to use filter in such scenario or would you suggest something to make my measure more simple and resources efficient?
Thank you 🙏
Solved! Go to Solution.
hi @Peter65f1
it is OK.
you may make it more concise like this
Thank you, the second one is very ellegant because it takes care of potential new invoice statuses in the future. Great solution, have a great day 😊
hi @Peter65f1
it is OK.
you may make it more concise like this
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 |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 7 | |
| 6 | |
| 6 |