Forum Discussion
bo_afk
Post Patron
7 years agoCurrent week vs last week sum
Hi, I have a dataset containing week numbers and sales figures associated to each week, along with other columns such as market, product etc. How would do I create a measure to compare the sa...
- Anonymous7 years ago
Hi bo_afk ,
You can add allselected function to get current last week number and use it to find out correspond amount:
CW Sales = VAR CW = CALCULATE ( MAX ( Table[WeekNum] ), ALLSELECTED ( Table ) ) RETURN CALCULATE ( SUM ( Table[Sales] ), FILTER ( ALLSELECTED ( Table ), Table[WeekNum] = CW ) )Regards,
Xiaoxin Sheng
Anonymous
4 years agoNot applicable
i want to calculate last week vs current week comparison bases on total backoffice cases [ for eg previous week it is 100 and this week till date 110 so variance is +10 ] and i need to show this value in power Bi Card visual
Can someone please assist me in - i have tried referrring various sites but i am not getting appropriate codes