Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I was wondering if anyone can help me?!
I created a measure and would like to use the filter function to exclude future month's, however I get a 'Operator or expression '()' not supported in this context' error, the measure works without the filter function but not with it, any ideas why?
Thanks in advance
CSP
Failed_SLA = (
calculate(DISTINCTCOUNT(Job[Id]),Job[Failed]=1)
/
Calculate(DISTINCTCOUNT(Job[Number]),Job[Status]=4)+Calculate(DISTINCTCOUNT(Job[Number]),Job[Status]=5)),
Filter (JOB, MONTH(Job[Date].[Month]) <= MONTH(today()))
)
Solved! Go to Solution.
You need to modify the logic as given below
Failed_SLA =
calculate(DISTINCTCOUNT(Job[Id]),Filter (JOB, MONTH(Job[Date]) <= MONTH(today()) && Job[Failed]=1))
/
Calculate(DISTINCTCOUNT(Job[Number]),Filter (JOB, MONTH(Job[Date]) <= MONTH(today()) && Job[Status]=4))+Calculate(DISTINCTCOUNT(Job[Number]),Filter (JOB, MONTH(Job[Date]) <= MONTH(today()) && Job[Status]=5))
Regards,
You need to modify the logic as given below
Failed_SLA =
calculate(DISTINCTCOUNT(Job[Id]),Filter (JOB, MONTH(Job[Date]) <= MONTH(today()) && Job[Failed]=1))
/
Calculate(DISTINCTCOUNT(Job[Number]),Filter (JOB, MONTH(Job[Date]) <= MONTH(today()) && Job[Status]=4))+Calculate(DISTINCTCOUNT(Job[Number]),Filter (JOB, MONTH(Job[Date]) <= MONTH(today()) && Job[Status]=5))
Regards,
Welcome. Kindly mark my reply as a solution! Looks like you have marked your reply as a solution.
Sorry, I've marked your your reply as solution now.
Thanks again!
CSPedrao
try it like this
Failed_SLA =
calculate(DISTINCTCOUNT(Job[Id]),Job[Failed]=1)
/
Calculate(DISTINCTCOUNT(Job[Number]),Job[Status]=4)+Calculate(DISTINCTCOUNT(Job[Number]),Job[Status]=5)),
Filter (JOB, MONTH(Job[Date].[Month]) <= MONTH(today()))
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Follow me on Linkedin
Vote for my Community Mobile App Idea 💡
Proud to be a Super User! | |
Hi,
It made no difference, still gives me the same message 'Operator or expression '()' is not supported in this context'.
Thanks anyway!
CSPedrao
try it now
Failed_SLA =
calculate(DISTINCTCOUNT(Job[Id]),Job[Failed]=1)
/
Calculate(DISTINCTCOUNT(Job[Number]),Job[Status]=4)+Calculate(DISTINCTCOUNT(Job[Number]),Job[Status]=5),
Filter (JOB, MONTH(Job[Date].[Month]) <= MONTH(today())
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Follow me on Linkedin
Vote for my Community Mobile App Idea 💡
Proud to be a Super User! | |
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 43 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 122 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |