Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am having a problem adding a new column to a table
If I add a new column and use some trivial formula for it (For example NewColumn = 7) it works.
When I try to use the code I need, PBI desktop seem to reject the code and the formula remains blank. However, the code seems to be OK, because if a modify an existing column using this same code, it is accepted and the results are OK.
Any ideas?
Thank you!
In order to help you better if your problem is not solved yet, I need to know what is your data connection mode? If it is direct query mode, it will have some limitations, For more details, you can read related document link:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Not sure what can I share to show you what is happening. Are you asking for uploading the Power BI data model? Don't see how this can be done.
The calculated column I try to add to my model is quite simple. It is just a SWITCH function involving another column and a measure. It works if I replace the code in an existing column but doesn't work if try to use in a new column.
Thank you for the help.
Hello @SergiPlanell ,
can you share with us your code with a sample data or a screenshot so we could see why this is happening to you.
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
40 |