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
Chanleakna123
Post Prodigy
Post Prodigy

Minus Moving Data to Previous Date

1.PNG

 

HI All , 

 

I have above data in Excel , and i wanna get moving minus data by data . For ex : Column 02/03/18( 19410)- Column 01/03/18(18310) = -1100 , you see some days are missing. but the data still minus the previous data. In addition , there would be -1100 as a result ,  Can i convert this -1100 to 1100 ? because i want to only extract the positive data to get in Total Number. 
What calculation should i use here  ?

 

thanks 

5 REPLIES 5
v-qiuyu-msft
Community Support
Community Support

Hi @Chanleakna123,

 

Assume the sample data below: 

 

q6.PNG

 

You can create a measure: 

 

Measure = var LMDate= MAXX(FILTER(ALL('Table1'),'Table1'[Date]<MAX('Table1'[Date])),'Table1'[Date])
Return
IF(LOOKUPVALUE(Table1[Amount],Table1[Date],LMDate)=BLANK(),BLANK(),
ABS(MAX('Table1'[Amount])-LOOKUPVALUE(Table1[Amount],Table1[Date],LMDate)))

 

w1.PNG

 

 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-qiuyu-msft , Hi dear , as i couldn't display the measure as per below . and the value i used only in the same table. 

1.PNG

hi @v-qiuyu-msft

 

i can use this calculation for only 1 type of materials . if i have 10 different materials , these aren't work . 

 

thanks with Regards, 

Hi @Chanleakna123,

 

Please share your pbix file if possible. Please remove sensitive data before sharing. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-qiuyu-msft

 

https://drive.google.com/open?id=1okd_xFYCT4TqGFBv6fTuq4k-0Uyb3u5I

 

please use the link for File fix. 

 

thank you so much for your assistance. 

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.