Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowHi 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.
Solved! Go to Solution.
I'm thinking:
Fortnight =
VAR __BaseDate = DATE(2019,1,1)
VAR __Days = ([Value].[Date] - __BaseDate) * 1.
RETURN
INT(__Days/20) + 1
Attached PBIX.
I'm thinking:
Fortnight =
VAR __BaseDate = DATE(2019,1,1)
VAR __Days = ([Value].[Date] - __BaseDate) * 1.
RETURN
INT(__Days/20) + 1
Attached PBIX.
@Greg_Deckler , absolute genius, but instead of the number how can i get actual date of the fortnight
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
24 | |
15 | |
13 | |
12 | |
8 |
User | Count |
---|---|
30 | |
22 | |
15 | |
14 | |
14 |