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
Hi All,
I have a Service Entitlement table that has contract# and contract start and end dates in it (among other things). I want to generate another table that includes the first of the month and the contract# for every month a contract is active. I have this and it works.
| 10/1/2021 | 0800424639 |
| 10/1/2021 | 0800424634 |
| 9/1/2021 | 0800424639 |
| 9/1/2021 | 0800424634 |
| 8/1/2021 | 0800424639 |
| 8/1/2021 | 0800424634 |
| 7/1/2021 | 0800424639 |
| 7/1/2021 | 0800424634 |
| 6/1/2021 | 0800424639 |
| 6/1/2021 | 0800424634 |
| 5/1/2021 | 0800424639 |
| 5/1/2021 | 0800424634 |
| 4/1/2021 | 0800424639 |
| 4/1/2021 | 0800424634 |
| 3/1/2021 | 0800424639 |
| 3/1/2021 | 0800424634 |
| 2/1/2021 | 0800424639 |
| 2/1/2021 | 0800424634 |
| 1/1/2021 | 0800424639 |
| 1/1/2021 | 0800424634 |
| 12/1/2020 | 0800424639 |
| 12/1/2020 | 0800424634 |
| 11/1/2020 | 0800424639 |
| 11/1/2020 | 0800424634 |
| 10/1/2020 | 0800424639 |
| 10/1/2020 | 0800424634 |
Solved! Go to Solution.
Hi Paul, Thank you for the reply. I tried this too; however, Power BI gives me the red squiggles under the statement no matter where I add it to the DAX even ask you suggest.
I did find a way to do it from another blog, using a Variable, but I'm not sure this is the "best," most efficient way to do it. (So, I welcome suggestions). It seems to be working though...
Try:
Proud to be a Super User!
Paul on Linkedin.
Hi Paul, Thank you for the reply. I tried this too; however, Power BI gives me the red squiggles under the statement no matter where I add it to the DAX even ask you suggest.
I did find a way to do it from another blog, using a Variable, but I'm not sure this is the "best," most efficient way to do it. (So, I welcome suggestions). It seems to be working though...
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!