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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
hozefamk
Frequent Visitor

Carry forward of data value from one measure to another

I have a table where i Have Total amount for current month  and Total arrivals  and Total Sales Target for Next 4 months. I calculate Closing stock using formula as Total amount + Total arrivals - Total Sales Target from where i get Closing Stock for Current Month. Now my query is I have Closing stock for current month which should be the Total amount for Next month. For example from the image Closing stock for sept is 226.74 that should be the Total Amount for Oct month and same should go on till December. 

I have two files attach below one is the value which i am getting and second is the solution which is needed.

Measures are created for all columns shown below.

Any help would be appreciated.

doubt.PNGsolution.PNG

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @hozefamk,

 

Please check the sample as below. Here I create the measures as below.

 

Total Amoun = CALCULATE(SUM(Table1[Total Amount]))
Total arrival = CALCULATE(SUM(Table1[Total arrivals]))
Total Sales Targe = CALCULATE(SUM(Table1[Total Sales Target]))
Measure = [Total Amoun]+[Total arrival]-[Total Sales Targe]
Measure 2 = 
var curre = MAX(Table1[Index])
return 
CALCULATE([Measure],FILTER(ALL(Table1),Table1[Index]<=curre))

Capture.PNG

 


For more details, please check the pbix as attached.

 

Regards,
Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @hozefamk,

 

Please check the sample as below. Here I create the measures as below.

 

Total Amoun = CALCULATE(SUM(Table1[Total Amount]))
Total arrival = CALCULATE(SUM(Table1[Total arrivals]))
Total Sales Targe = CALCULATE(SUM(Table1[Total Sales Target]))
Measure = [Total Amoun]+[Total arrival]-[Total Sales Targe]
Measure 2 = 
var curre = MAX(Table1[Index])
return 
CALCULATE([Measure],FILTER(ALL(Table1),Table1[Index]<=curre))

Capture.PNG

 


For more details, please check the pbix as attached.

 

Regards,
Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @hozefamk,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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