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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Store Measure values in a table

Hi Everyone,

 

We have a report that is refreshed twice everyday, excluding weekends. A measure calculates the total invoice value for the previous day, but is not stored in any data source. I`d like to store this value every day such that only the previous day value is updated after every refresh & other dates/ values are not changed, thereby be able to calculate & display the month to date values.

 

I used the below. The calendar table has dates from 01-01-2020 till 12-31-2030 & the below populates the values on all dates with the current value. I`m not sure how to work with this one.

 

MTD = SUMMARIZE('Calendar','Calendar'[Date], "MTD", CALCULATE([TotalInvoiceValue],FILTER('Calendar','Calendar'[Date] = TODAY()))

 

Thanks in advance

Regards,

Anil

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You can't store measure value in a table. You may use calculated column instead.

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Not very clear

refer

Power BI — Day Intelligence Questions — Time Intelligence 5–5
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

 

Power BI — MTD Questions — Time Intelligence 3–5
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

 

examples

Last Day Non Continuous = CALCULATE([sales],filter(ALLSELECTED('Date'),'Date'[Date] =MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))
Day behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Day))
Diff COlumn = datediff(maxx(filter(Table,Table[Date]<earlier(Table[Date]) && Table[Numberf]= earlier(Table[Numberf]) ),Table[Date]) ,Table[Date],Day)

This Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE(sum('order'[Qty]), previousday('Date'[Date]))

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

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
Anonymous
Not applicable

Thanks @amitchandak . This is helpful. Apologies if it was not clear. I`ll try again.

 

The total invoice value is calculated everyday. Everyday its a new value & I want this to be stored in a table after the data refresh everyday like in the below table. Since these are not stored anywhere else, I was exploring a possibitlity to store in a table in the report. 

 

DateTotalInvoiceValue
7/20/2020100
7/21/2020200
7/22/2020150
7/23/2020275
7/24/2020125
7/25/2020185
7/28/2020195
7/29/2020200

 

Once I`m able to store these, I`d use the MTD caluclations as you explained in the other posts. Hope this is clear now.

 

Regards,

Anil

Anonymous
Not applicable

Hi @Anonymous ,

 

You can't store measure value in a table. You may use calculated column instead.

 

Best Regards,

Jay

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.