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 have 2 simple columns like below. Issue is that AVG is a text and I do not have access to change it to num in desktop.
| Quantity | Avg |
| 130 | 20 |
| 154 | 3 |
| 190 | 4 |
| 603 | 16 |
| 450 | 0 |
| 603 | 0 |
| 450 | 27 |
I want to divide quantity / avg but bc avg is a text I cannot get the division working.
Is there any way to divide this in a measure?
Solved! Go to Solution.
@juanrivera63 , Try a measure like
Divide(sum(Table[quantity]), Sumx(Table, [Avg]*1) )
Ideally in the column/measure tool, you should be able to change the data type
Hi @amitchandak , I am trying this in my regular query and it is giving me a cross join.
@juanrivera63 , Try a measure like
Divide(sum(Table[quantity]), Sumx(Table, [Avg]*1) )
Ideally in the column/measure tool, you should be able to change the data type
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!