Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PBIron
New Member

DAX for new table disappears, leaving just new table name and ghost columns created by missing DAX

Hi Forum. Within a large project, I created a new table (called zzt_PhoneUnitRec) using around 200 lines of DAX that UNION'ed rows from other tables in the project. Nothing unusual. The new table had around 50,000 rows. I added custom columns to the table. After adding a few custom columns (and saving my work frequently) I noticed the table was empty - instead of 50,000 rows, it now had only 1 row of all blank values.

 

PBIron_2-1693868044462.png

 

What is strange is that the DAX for the table has disappeared and looking at the table in the Table view now shows just the table name and equal sign. The other 200 lines of DAX are gone.

 

PBIron_3-1693868107505.png

 

Another strange thing is that I can still see in the Table view all the columns that were created by the 'disappeared' DAX, but there is no DAX that created them, so how can these columns exist? I can also see the custom columns I added to the table, but they are now calculated based on an empty/blank table, so they are also empty/blank, which is not unexpected.

 

PBIron_4-1693868864661.png

 

I restarted PC and opened the project again, but because I must have saved the project after the DAX disappeared, it still has the strange empty table with no DAX, but with columns created by the missing DAX.

 

Where did the DAX disappear to? And how can table columns exist with no DAX that created them? I lost around a day of work and I want to avoid repeating.

Thanks in advance for any insights.

 

3 REPLIES 3
parry2k
Super User
Super User

I can feel your pain. I hope it all go well. Good luck! 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

PBIron
New Member

Thanks for your reply @parry2k . I have submitted a support ticket to MS, but I'm also starting to rewrite the DAX that disappeared. That's probably the 'quickest' fix.

parry2k
Super User
Super User

@PBIron Never seen that, seems like something went wrong and the file got corrupted. I have no idea what could be the way to recover it. Maybe if you want to open a support ticket and they can assist, don't know.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.