- 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

Column to assign value based on week date?
Greetings, i have data of daily notifications and i need to create a column that assigns an Agent to each notification. They take turns each week. How could i calculate what value to set based on the notification date?. If they were 4 agents it could just be with "date.weekofmonth", but with 3, i cant figure it out.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @DanS446 ,
Please try:
Create a measure:
Assigned = "Agent " & MOD(MAX('Data'[weeknum]) - 2, 3) + 1
The final page effect is shown below:
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @DanS446 ,
Please try:
Create a measure:
Assigned = "Agent " & MOD(MAX('Data'[weeknum]) - 2, 3) + 1
The final page effect is shown below:
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks, its a very simple solution. I tweaked it a bit so it works as a calculated column, works instead with the week number, and it lets me save what notification corresponded to each agent and display some statistics later (i actually needed to set a name for it rather than number of agent)
IF (MOD(data[week num],3) + 1 = 1, "name1",
IF(MOD(data[week num],3) + 1 = 2, "name2",
IF(MOD(data[week num],3) + 1 = 3, "name3")
)
)

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
07-06-2024 10:42 PM | |||
03-27-2024 11:38 AM | |||
08-16-2024 12:23 AM | |||
08-01-2024 12:48 AM | |||
05-29-2023 02:13 AM |
User | Count |
---|---|
84 | |
81 | |
52 | |
37 | |
36 |
User | Count |
---|---|
105 | |
85 | |
48 | |
42 | |
41 |