- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Selecting a date every x week
Hi Power BI community
I have a table with five columns
1. Index: An index column
2. Assignment: A Number column that shows diffrent assignment. (In this example we will just look at [Assignment] = 1)
3. Date: A date colum that shows each date from today and the next three years
4. Firstdate: A date colum that shows which day an assingment started. (So in this example where we just look at one assingnment we will have the same date in each row)
5. Interval: A text colum that shows how often an assingment should be done. (It could be "7weeks" or "12weeks" or "26weeks" or anyother number between 1 and 52 followed by weeks.
I want to add a new column that shows 1 if the [Date] is equal to the [Firstdate] and if the [Date] is equal to [Firstdate] + a number of weeks equal to the periode in the Interval column.
I really hope someone can give me a hit on what my next step should be. All help is greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
if
Duration.Days([Date] - [FirstDate]) = 0
or
Duration.Days([Date] - [FirstDate])/7 = [Interval]
then
1
else
null
Stéphane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
if
Duration.Days([Date] - [FirstDate]) = 0
or
Duration.Days([Date] - [FirstDate])/7 = [Interval]
then
1
else
null
Stéphane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I have split the Interval column up and made gotten the first one or two digits in a column by themself, so the problem I have is to create the interval.

Helpful resources
Join our Fabric User Panel
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Power BI Monthly Update - June 2025
Check out the June 2025 Power BI update to learn about new features.

User | Count |
---|---|
13 | |
9 | |
9 | |
8 | |
7 |
User | Count |
---|---|
13 | |
11 | |
9 | |
6 | |
6 |