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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I just found a bug in the Power Query function Number.Mod.
According to the documentation the function should accept a 3rd optional argument (Precision). In Power BI desktop the 3rd argument is accepted without any error, but once the model is published to the service, it will fail when refreshing the data, reporting an error "Microsoft SQL: Operand data type float is invalid for modulo operator.".
The workaround is to rework the querylogic so that you do not need the 3rd argument, and then not enter it, but obviously the real solution is to make sure the behaviour of the function Number.Mod is identical in the service as on the desktop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anonymous
May I know what kind of data types are your number and divisor? What kind of value you used as the third parameter?
Best Regards,
Community Support Team _ Caiyun