Hi,
Situation is like this: Suppose i Have a drug data with its expiry date:
Drug Name | Exp |
Alp 320 | 02-12-2018 |
B | 02-10-2017 |
C | 12-04-2016 |
D | 22-04-2010 |
E | 03-07-2020 |
F | 23-05-2017 |
G | 24-05-2016 |
H | 25-05-2016 |
I | 26-05-2018 |
J | 27-05-2016 |
K | 27-05-2019 |
L | 29-05-2011 |
M | 30-05-2012 |
N | 03-01-2010 |
O | 03-06-2016 |
P | 02-06-2017 |
Exp. date is of different year.
Now I have another column with date, based on which I calculated the week number.
Current Date | Week number |
14-08-2016 | 34 |
15-08-2016 | 34 |
16-08-2016 | 34 |
17-08-2016 | 34 |
18-08-2016 | 34 |
19-08-2016 | 34 |
20-08-2016 | 34 |
21-08-2016 | 35 |
22-08-2016 | 35 |
23-08-2016 | 35 |
24-08-2016 | 35 |
25-08-2016 | 35 |
26-08-2016 | 35 |
27-08-2016 | 35 |
28-08-2016 | 36 |
29-08-2016 | 36 |
30-08-2016 | 36 |
31-08-2016 | 36 |
01-09-2016 | 36 |
02-09-2016 | 36 |
03-09-2016 | 36 |
04-09-2016 | 37 |
Now I have 2 slicer from this: Year and Weeknum.
When I select year as 2016 and week as 34 then I should get the name of drugs with their week to expiry data. (how many weeks remaining to expire the medicine)
I tried: weeknum(exp) - weeknum(current date)
for same year (exp year = 2016) it is working fine for other years it is not working fine.
I am trying for a dynamic report where i can go to past or futer and figure out at tht time how many weeks were remaining for the drug to expire.
Meaning based on week slicer I should be able to see the data according to the week selected.
Thanks.. Please advise.