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
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
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 |
---|---|
97 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |