Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a table with an index
Current State:
Case # Priority-Index Date
1 1
2 3
3 2
4 5
5 6
Ideal State:
Case # Priority-Index Date
1 1 January 1, 2021
2 3 January 3, 2021
3 2 January 2, 2021
4 5 January 5, 2021
5 6 January 6, 2021
6 4 January 4, 2021
The end state is to streamline the scheduling process of activities
I have a tried a couple of ways to use the index to add to earlier value but I keep trigering circular reference errors.
Thanks in advance
that was a mistake on my part!
Hi @CRDover
Month and Year are hard coded as 1, 2021? If you have other logic to apply, please specify
Add in Power Query
#date(2021,1,[#"Priority-Index"])Add as DAX Calculated Column
DATE(2021,1,'Table'[Priority-Index])
Hi Vera, thank you for your contribution on this but I see my attempts to simplify this turned out counterproductive.
The priority index cannot be used for day number as it goes into the thousands. I do also have a additional groups that would necesitate restarting the date count, and a capacity that would potentially allow for assigning to cases to the same date.
Example:
| Desired Output | ||||
| Case | Group | Priority-Index | Capacity | Date |
| 1 | A | 1078 | 2 | 10/1/2021 |
| 7 | A | 1096 | 2 | 10/1/2021 |
| 8 | A | 1099 | 2 | 10/4/2021 |
| 9 | A | 1102 | 2 | 10/4/2021 |
| 13 | A | 1114 | 2 | 10/5/2021 |
| 14 | A | 1117 | 2 | 10/5/2021 |
| 2 | B | 1081 | 5 | 10/1/2021 |
| 3 | B | 1084 | 5 | 10/1/2021 |
| 4 | B | 1087 | 5 | 10/1/2021 |
| 5 | B | 1090 | 5 | 10/1/2021 |
| 6 | B | 1093 | 5 | 10/1/2021 |
| 10 | B | 1105 | 5 | 10/2/2021 |
| 11 | B | 1108 | 5 | 10/2/2021 |
| 12 | B | 1111 | 5 | 10/2/2021 |
| 15 | B | 1120 | 5 | 10/2/2021 |
| 16 | B | 1123 | 5 | 10/2/2021 |
I wasn't concerned about those other pieces as there is many ways to handle them if I have a date that can be assigned based on the index.
The starting date for the table varies and is dynamic, not hard coded. The groups can be included in the table or not depending on how a formula to assign dates based on the index would work.
I know how to build the code to copy based on available capacity. The part that I am missing is the one that I thought would be easiest. Simply adding one day, to the date before when necessary. I.e. when going from 10/1/2021 to 10/02/2021.
Not sure if that helps
Hi @CRDover
I don't think I understand your logic to add the Date column, if Index goes to thousands or if you simply want to add one day you can use Date.AddDays in M...but to simplify the question, it is better to put sample data as input, and a desired output, and the logic in between.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!