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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
I try to add dynamic filter to the calculation but i receiving error.
This is the function:
Solved! Go to Solution.
Your static example has the quarter as a text value ("2"). Your roundup function is returning an integeter. You'll need to convert it to a text value with FORMAT() (or change your quarter value to whole number). Also, you can pre-calculate your comparison values as variables first, as follows. This sometimes solves some errors inside calculate.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Your static example has the quarter as a text value ("2"). Your roundup function is returning an integeter. You'll need to convert it to a text value with FORMAT() (or change your quarter value to whole number). Also, you can pre-calculate your comparison values as variables first, as follows. This sometimes solves some errors inside calculate.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thx for help, probably working.
I find the problem, my column were not converted to any specyfic type. I change to number and the formula working.
It is quite a strange that i need to do this while there are only numbers.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!