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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ybatistamayo
Helper III
Helper III

find daily value

my dataset contains a column with cumulative values, by region and date and i want to get daily values

 

https://drive.google.com/open?id=1XNu1PY7fnyeQVKkmwgPsKTan-tugKmOv

 

I Want something like this

 
 

Sin título.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ybatistamayo , Please find the attached file after the signature. Create a new column.

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @ybatistamayo ,

 

You need a calculated column as below:

 

Column = 
var a =CALCULATE(MAX('Data'[Cumulative Value]),FILTER('Data','Data'[Date]=EARLIER(Data[Date])-1),'Data'[Region]=EARLIER(Data[Region]))
Return
IF('Data'[Date]=MINX('Data','Data'[Date]),'Data'[Cumulative Value],'Data'[Cumulative Value]-a)

 

 

Finally you will see:

 

Annotation 2020-04-02 155103.png

 

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

 

amitchandak
Super User
Super User

@ybatistamayo , Please find the attached file after the signature. Create a new column.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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