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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Sum up previous data

Hi all

 

So i want to create a line chart, axis are dates, value is the achievement process of sales goal.

Lets say on dez 31 2019 the achievement was 100%, but when inserted in a line chart it shows the daily achivement, so everyday has about the same line height.

What i want instead is summing up the values from previous dates, so dez 31 has the whole 100% and you can see the trend.

 

1.PNG2.PNG

 

Thanks and regards

 

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

see figure:

11-03-_2020_17-41-43.png

 

Regards Frank AT

 

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

see figure:

11-03-_2020_17-41-43.png

 

Regards Frank AT

 

amitchandak
Super User
Super User

Try like

last Day= CALCULATE(SUM(Sales[Sales Amount]),(dateadd('Date'[Date],-1,DAY)))

 

Anonymous
Not applicable

Thanks for the quick response @amitchandak 

Didnt work for me, gives me the same result as just adding the measure by itself.

 

I think i forgot to mention the achivement goal is a measure, so i cant sum it..

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.