Forum Discussion
Weekly %Variance in sales
- Anonymous8 years ago
vishal17081990,
Change %v to the following.
%v = IF(ISBLANK(MAX(tbl_SalesDaily[previousweekofyear])),0,[DIFFERENCE]/MAX(tbl_SalesDaily[previousweekofyear]))
Regards,
Lydia - Anonymous8 years ago
vishal17081990,
I have sent you PBIX file via Private Message.
Regards,
Lydia
Create the following column in your table.
previousweekofyear = CALCULATE(SUM(Table[Staples]),FILTER(Table,Table[TYWN]=EARLIER(Table[TYWN])&&Table[tbl_Calendar.TYN]=EARLIER(Table[tbl_Calendar.TYN])-1))
Then create the following measures in your table and check if you get expected result.
DIFFERENCE = SUM(Table[Staples])-MAX(Table[previousweekofyear])
%v = [DIFFERENCE]/SUM(Table[Staples])
There is an example for your reference.
Regards,
Lydia
Anonymous
Thanks for your help :)
Tried below however no success... :(
for your reference i am attaching power BI Template... hope it will help...
https://1drv.ms/u/s!AoKR2AuKbWtQg0jaAdntSnPcGREV
Regards,
Vishal.
- Anonymous8 years agoNot applicable
vishal17081990,
I am unable to view any data when opening this PBIT file. Could you please share PBIX file via Private Message?
Regards,
Lydia- vishal170819908 years ago
Helper I
Anonymous
Shared in personal message.. :)
- Anonymous8 years agoNot applicable
vishal17081990,
I sent you PBIX file via Private message. Please check if you get expected result.
Regards,
Lydia