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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
TCunningham
Regular Visitor

Using Volatile Tables

Is it possible to use volatile tables in PowerBi? The query works as expected in Teradata SQLAssistant. 

 

BEGIN TRANSACTION; 
CREATE MULTISET VOLATILE TABLE vt_temp, NO Log AS   
(SELECT * FROM db.dtl_table )   WITH DATA   
PRIMARY INDEX ( xxx_id )    ON COMMIT PRESERVE ROWS;    
END TRANSACTION;
4 REPLIES 4
MFelix
Super User
Super User

Hi @TCunningham,

 

Power BI does not have the same work process as SQL, what you can do is using DAX within a measure is to create a variable that makes your temporary table then use it for your calculations.

 

Measures are only used when called in Power BI so your temp table will also be used when called not affecting your performance if not used. 

 

Don't know if this answers your needs but as refered the SQL concepts are a bit different. 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





I don't quite understand. I'm trying to bring data into the appliation via a connection to Teradata, so when I create that connection, I'm dropping in a full query. The portion that creates the volatile table throws an error regarding BEGIN TRANSACTION/END TRANSACTION. The code runs in SQLAssistant just fine. Is there a workaround for getting it to execute in Power BI?

Hi @TCunningham ,

 

To what I know Power BI does not accept the use of volatile tables that's why you are getting an error.

 

But let me call out to @ImkeF  the best user on Power Query around here, maybe she have some more insights or workaround.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





I appreciate it

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.