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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
IF
Post Prodigy
Post Prodigy

Daily value

Hi,

I want to show the daily value in a table/matrix. I have the following sample:

DateValueReadyStorage

MatNoDateValueReadyStorage
A17/1/20222nullnull
A17/2/20223nullnull
A17/2/20224nullnull
A17/3/20224nullnull
A17/4/20223nullnull
A1nullnull820
A3nullnull46
A37/1/20222nullnull
A37/2/20225nullnull
A37/3/20222nullnull
A37/4/20223nullnull
A37/5/20222nullnull
A37/5/20225null

null

 

 

The column is Ready+Storage. I want to show the daily values after calculating the daily value. The calculation should be what is left by column value - value for the day. For example; A1 is having value 2 on 1 July. The "left" should be 28-2=26. The next day's value is 7 and the "left" value for July 2 should be 26-7 =19 and so on.

desired.jpg

Thanks in advance!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @IF ,

 

Try to add the following measure:

Measure = CALCULATE( sum('Table'[Storage]) + SUM('Table'[Ready]), ALLSELECTED('Table'[Date])) - CALCULATE(SUM('Table'[Value]),'Table'[Date] <= MAX('Table'[Date]))

 

MFelix_0-1657530421771.png

 


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



View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @IF ,

 

Whether the advice given by @MFelix  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

MFelix
Super User
Super User

Hi @IF ,

 

Try to add the following measure:

Measure = CALCULATE( sum('Table'[Storage]) + SUM('Table'[Ready]), ALLSELECTED('Table'[Date])) - CALCULATE(SUM('Table'[Value]),'Table'[Date] <= MAX('Table'[Date]))

 

MFelix_0-1657530421771.png

 


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



Thanks. It works.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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