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
Hussain
Helper I
Helper I

Save measure result in a table everyday using DAX

Hi Power Bi Community,

 

I have a few measures which record an approximate size of the different tables. I want to record/save these values in a table so that I can observe what's the size of each table everyday.

How can I copy and save these values?

I am doing this to monitor memory usage and then I have to use this data to forecast the memory requirement.

 

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

If you have a date or index column on the tables, you could calculate a running rowcount to show size historically.  If not, you can't store stuff like that between refreshes in Power BI.  One way would be to make a paginated report with a visual that has the row counts in the dataset, subscribe to it as csv file, and send it to Flow to save the daily files to SharePoint/OneDrive.  Lots of overhead, but it could work.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @Hussain 

PBI doesn't have persistent storage like this.  Your measures will change day to day as the tables change, you won't be able to add rows to a table for example, inside PBI.

You could manually copy the table and save it to Excel or export the data from the visual.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


mahoneypat
Employee
Employee

If you have a date or index column on the tables, you could calculate a running rowcount to show size historically.  If not, you can't store stuff like that between refreshes in Power BI.  One way would be to make a paginated report with a visual that has the row counts in the dataset, subscribe to it as csv file, and send it to Flow to save the daily files to SharePoint/OneDrive.  Lots of overhead, but it could work.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.