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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Solved! Go to Solution.
Hi there. The thin is you have to ask twice in the OR statement and not at the end. It need from you to return a true false on each argument of the function. Check this correction out:
IF(
OR(
VALUE(CONCATENATE(YEAR(MAX(Calendario_pedido[Order_day]));
FORMAT(MONTH(MAX(Calendario_pedido[Order_day])); "00"))) = Calendario_pedido[year_month_order];
VALUE(MAXX( Calendario_pedido;CONCATENATE(YEAR(DATEADD(Calendario_pedido[Order_day];-1;MONTH));
FORMAT(MONTH(DATEADD(Calendario_pedido[Order_day];-1;MONTH));"00"))))= Calendario_pedido[year_month_order]
)
; BLANK()
; Calendario_pedido[year_month_order]
)
There you have two times the condition.
Hope this works
Regards
Happy to help!
Hi there. The thin is you have to ask twice in the OR statement and not at the end. It need from you to return a true false on each argument of the function. Check this correction out:
IF(
OR(
VALUE(CONCATENATE(YEAR(MAX(Calendario_pedido[Order_day]));
FORMAT(MONTH(MAX(Calendario_pedido[Order_day])); "00"))) = Calendario_pedido[year_month_order];
VALUE(MAXX( Calendario_pedido;CONCATENATE(YEAR(DATEADD(Calendario_pedido[Order_day];-1;MONTH));
FORMAT(MONTH(DATEADD(Calendario_pedido[Order_day];-1;MONTH));"00"))))= Calendario_pedido[year_month_order]
)
; BLANK()
; Calendario_pedido[year_month_order]
)
There you have two times the condition.
Hope this works
Regards
Happy to help!
Thanks buddy, you are right!