Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 49 | |
| 44 | |
| 43 | |
| 39 | |
| 32 |