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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

Is there way to copy whole table (with measures) into another table?

I have a Pbix file with one table that comprises of so many measures created after all (as shown below):

JustinDoh1_0-1662397507726.png

I am trying to copy the whole (table) into another table.

Is there anyway?

Thanks.

5 REPLIES 5
parry2k
Super User
Super User

@JustinDoh1 you can really take advantage of TE and advance scripting to copy the DAX measures and then change the reference to the table name in these measures to point to the new table and then execute the script. To learn more about scripting, you can check this TE page Advanced Scripting | Tabular Editor Documentation

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!



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.

v-yadongf-msft
Community Support
Community Support

Hi @JustinDoh1 ,

 

Do you want to copy measures from one pbox file to another? If it is like this, please refer to: How to copy a measure between two reports in Power BI? (datacaffee.com)

 

If you want to copy measures between two tables in one report, I'm afraid there is no better way than manually copying the DAX.

 

However, here's an idea about copying measures in the following link, please vote it: Microsoft Idea (powerbi.com)

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

parry2k
Super User
Super User

@JustinDoh1 what is your definition of copying the table, just measures in that table or copy the table with all the data, and then redo those measures using the new table? Your question is very vague.

 

 

 



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.

@parry2k 

Thank you for your reply.

I added all these measures into this particular table.

Now, I need to replicate all measures into a duplicated table (which comes from SQL View).

I guess replicating fields from SQL View is easy, but how to replicate measures?

 

ribisht17
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.