Forum Discussion

harirao's avatar
harirao
Post Prodigy
6 years ago
Solved

Creating Trend comparing current week with previous week

Hi Team,

Required assistance, I am trying to create weekly trend comparing current wk vs previous week, used below dax  but not getting correct result
Colum:

PreviousReportDate = DATEADD(Query1[reportdate],-7,DAY)

Measure, highlighted in red is also measure 
Trend =
CALCULATE([%6week_1&2], FILTER(ALL(Query1),Query1[reportdate]=SELECTEDVALUE(Query1[PreviousReportDate]) && Query1[subregion]=SELECTEDVALUE(Query1[subregion])))

Below is screen print where Trend suppose to get 18th data but getting incorrect result 
25th Data

18th 
18th Data
Once i get correct result for Trend i can create new Measure as per below comparison.



Regards,
Hari
 




2 Replies