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

Join 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.

Reply
Mike_Mace
Resolver I
Resolver I

New table from calculated measures whenever report is refreshed

Hi Forum happy pandemic days to all.

 

I am looking to create a new table that will save calculated measures (not information from other tables) whenever report is refreshed. 

The measures are count of rows of multiple other tables (and might have filters). The new table I am looking to create is a collection of the measurements I choose on those refresh days. Snip below.

 

Is there a dax function possible to create something like this.

Also, since this a new table, assume that the "new" dataset will be saved online on my workspace?

 

Any help/direction will be very much appreciated.

 

Mike_Mace_0-1606474653054.png

 

6 REPLIES 6
v-kelly-msft
Community Support
Community Support

Hi @Mike_Mace ,

 

You need to create a date slicer table as a dimension table,such as below:

Slicer = DISTINCT(UNION(VALUES(Table1[Date]),VALUES('Table2'[Date])))

Then create measures as below:

Measure 1 = CALCULATE(COUNT(Table1[Column1]),FILTER(ALL(Table1),'Table1'[Date]=SELECTEDVALUE(Slicer[Date])))
Measure2 = CALCULATE(COUNT(Table2[Value]),FILTER(ALL(Table2),'Table2'[Date]=SELECTEDVALUE(Slicer[Date])))

Remember to create relationships between dimension table and fact tables as below:

v-kelly-msft_0-1606813193815.png

And you will see:

v-kelly-msft_1-1606813211641.png

For the related .pbix file,pls see attached.

 

 

 

Best Regards,
Kelly

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

@v-kelly-msft thank you that is quite enlightening on creating slicer-tables.

 

Think I need to better explain the data my reports are giving me.

My data shows the status of varius items as it is (today) only.

In a week's time the status of all those items will be different plus new items submitted. So when i refresh Power BI in a week's time, the data from last week will be gone.

I can use the method you attached above to create the tables (albeit vertical on spreadsheet) highlighted in orange. This would be a table of the snapshop on that day.

My end goal is the table highlighted in green. I need to save each snapshop of the data whenever Power BI refreshes so I can create historic graphs. 

 

I am giving you snips as it seems I cannot attach the file

Including snips below

Mike_Mace_2-1606851743583.png

Mike_Mace_3-1606851773830.png

 

 

Hi @Mike_Mace ,

 

I see,if it is the case,I would say sorry  as it is not supported in power bi,once the data is overwritten,we cant calculate the result before overwirtten,data will be overwritten and never be stored any more.

One way for you is to keep all the records then calculate the results as you want,once the data is never stored,you wouldnt calculate the result based on it.

 

Best Regards,
Kelly

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

Thanks @v-kelly-msft 

 

Is it worth me exploring saving the snapshots of the data at specific dates on Azure or Sharepoint?

Hi @Mike_Mace ,

 

Would it be troublesome?If not ,it may be a workaround!

 

Best Regards,
Kelly

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

amitchandak
Super User
Super User

@Mike_Mace , You can save measure but that will not take slicer values.

You can use summarize or summarizecolumns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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