fortnight
3 TopicsGrouping dates into fortnights
Hi everyone, I'm looking for a solution that will help in grouping dates into fortnights, irregardless of month or year. I'll attach an image to help understand what I am meaning. It wouldn't matter if the column started at calendar start or a specific date. The date table I have is just an invoked funtion in M. Hopefully someone can help, I'm not sure what other information I could provide that would be helpful here.Solved4.2KViews0likes2CommentsAcumulate fortnight
Hi, I´m new here and have a doubt about DAX. Yesterday I was dealing with the purchase attachment and wanted to create a table with the following information: Knowing that the supplier ship on the 15th and 1st of each month, I wanted a table that would accumulate those purchases on the days they ship, to get a table showing how much quantity I will receive on each day. I tried to do a DAX measure with MTD and with this I was able to get the 15th day, but I am not able to get the 1st day. Any suggestions? Thanks. Date Purchases 2022/01/05 706 2022/01/10 1312 2022/01/22 806 2022/01/27 210 2022/02/02 1037 2022/02/10 1808 2022/02/17 1311 2022/02/25 1793 2022/03/03 1500Solved860Views0likes3CommentsHow to convert weekly dates to fortnightly dates
Hi Everyone, Its my first post in the forum so apologies if the post is posted incorrectly. I want to convert weekly dates to fortnightly dates. While this sounds simple - I cant seem to get it working. I know there was a similar post: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Grouping-dates-into-fortnights/m-p/949837 but this didnt quite work for me as the numbers didn't while line up. This is the data I have which goes up to 2023 (see below). I essentially want the 'Fortnight' column to show 06/01/21 for the first period. Then from 7/01/21 - 20/01/21 to show as 20/01/21 and 03/02/21 for the next 2 week period and so on. I intially tried "Fortnight = VAR __BaseDate = DATE(2021,1,6) VAR __2w = (__BaseDate) +14 RETURN if(Dates[Date]<=__BaseDate,__BaseDate,__2w)" but ovbiously this only works for the first period. wondering if some sort of loop could be made using this? or another simpler method altogether? Any help would be greatly appreciated! Kind regards, MikeSolved2KViews0likes1Comment