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
jeffrock
Helper I
Helper I

Get the measure for previous date and current date to get trend

Hi Team, I m trying to automate a report for daily analysis.

I have some precalculated measure that works on the date slicer, based on the date slicer it gives the number.

I need to find the trend with what happened yesterday and the previous day

so when I select only yesterday's date it should give me yesterday's result as well as a day before yesterday's result to check the anomalies.

I want these 2 results such that I can plot them in a graph to see the trend and differences based on different projects.

 

some sample for measure which I m using

fullfilled_task (in %) = sum(actual tasks)-sum(outofplantask)/sum(total_task)

distance = sum(distance covered)

 

and so on

any suggestions would be helpful

 

Thank you

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jeffrock , with help from the date table and time intelligence

 

Last Day = CALCULATE([Measure], FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE([Measure], previousday('Date'[Date]))

 

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@jeffrock , with help from the date table and time intelligence

 

Last Day = CALCULATE([Measure], FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE([Measure], previousday('Date'[Date]))

 

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

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.