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 had previously been loading a small subset of data into my model to carry out calculations. I could refresh the data without any issues. Upon bringing in a larger subset of the data into the model I get the following error:
I found the column with the corresponding code and commented it out, but received the same error. I then deleted the column entirely, and yet I still get this error when attempting to load the data. Why is this happening?
Solved! Go to Solution.
yes, your DAX code is likely missing a VAR statement. Please post the full code.
yes, your DAX code is likely missing a VAR statement. Please post the full code.
It turns out there was a measure floating around within the same table that contained similar code as my calculated column. I must have started to create it on accident as a measure and never removed it after the column was created. I'm still not sure why it didn't present a problem with previous data refreshes. Here is the code, it looks like I just removed the name at some point leaving a rouge return statement:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 47 | |
| 43 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 126 | |
| 102 | |
| 67 | |
| 50 |