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 moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi
why line 5 works well but line 6 error cause of A function 'ENDOFMONTH' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
1 Inflow_KPI2 = 2 VAR CurDate = ENDOFMONTH(Inflow_non5g[Date]) 3 RETURN 4 CALCULATE( MAX(Inflow_non5g[O&M OSS&EMS]), 5 //Inflow_non5g[Date] = CurDate 6 Inflow_non5g[Date] = ENDOFMONTH(Inflow_non5g[Date]) 7 )
Thanks a lot!
![]()
Hi @Anonymous ,
You should modify the formula as below:
Inflow_KPI2 = VAR CurDate = ENDOFMONTH(Inflow_non5g[Date]) RETURN CALCULATE( MAX(Inflow_non5g[O&M OSS&EMS]), Inflow_non5g[Date] = FILTER(Inflow_non5g,Inflow_non5g[Date]=ENDOFMONTH(Inflow_non5g[Date])))
Best regards,
Yuliana Gu
@v-yulgu-msft Thanks for help.
post from you should work, but i want to know why
1 Inflow_KPI2 = 2 VAR CurDate = ENDOFMONTH(Inflow_non5g[Date]) 3 RETURN 4 CALCULATE( MAX(Inflow_non5g[O&M OSS&EMS]), 5 Inflow_non5g[Date] = CurDate 6 )
works well. But
1 Inflow_KPI2 = 2 VAR CurDate = ENDOFMONTH(Inflow_non5g[Date]) 3 RETURN 4 CALCULATE( MAX(Inflow_non5g[O&M OSS&EMS]), 5 Inflow_non5g[Date] = ENDOFMONTH(Inflow_non5g[Date]) 6 )
cannot, but error with A function 'ENDOFMONTH' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
What's the difference between these two?
Regards
Check out the May 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 |
|---|---|
| 23 | |
| 21 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 43 | |
| 26 | |
| 24 |