Forum Discussion
Get data from same weekday from last month
Hey sousahebert!
Is there any way you can post your .pbix file? If you've never done that before, you can post your file to either OneDrive or Google Drive, and then post the link to that file here.
Sorry for delay..
You can access the pbix example file in below link
https://1drv.ms/u/s!AkSHnifOD9Zuhig6IJ3GE1Yvxkgn
Tks!!
- v-jianhe-msft8 years agoResolver II
Hi,
Forgive me but I am a bit confused about your business logic.
Referring to your second time reply:
>>> Date M0 M-1
04/12/2017 110
05/12/2017 240
02/01/2018 100 5000
03/01/2018 200 5000
>>> its return the full last month value (5000 its the value between 01/12/2017 and 31/12/2017)....
So,
- here, “04/12/2017” means “2017 December 4th”, “02/01/2018” means “2018 January 1st”, right?
- And you want to make “M-1” for “02/01/2018” to be 110, similarly, “M-1” for “03/01/2018” to be 240, right?
If so, but what is the relationship between “04/12/2017” and “02/01/2018”?
“2017 December 04” is Monday, while “2018 January 02” is Tuesday, so they are not the same weekday. Obviously, they are not the same workday in two months?
Also, but what is the relationship between “05/12/2017” and “03/01/2018”?
“2017 December 05” is Tuesday, while “2018 January 03” is Wednesday, so they are not the same weekday. Obviously, they are not the same workday in two months?
So how do you want to match the data between this month’s date and previous month’s date?
Best Regards,
Henry