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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
You could try the following calculated table. In my case I have a table called 'Table4' with UserID, Start Date and End Date
My New Table = SELECTCOLUMNS(
FILTER(
CROSSJOIN(CALENDARAUTO() , 'Table4') ,
[Date] >= 'Table4'[Start Date]
&& [Date] <= 'Table4'[End Date]
),
"UserID" ,'Table4'[UserID] ,
"Date" , [Date]
)
You could try the following calculated table. In my case I have a table called 'Table4' with UserID, Start Date and End Date
My New Table = SELECTCOLUMNS(
FILTER(
CROSSJOIN(CALENDARAUTO() , 'Table4') ,
[Date] >= 'Table4'[Start Date]
&& [Date] <= 'Table4'[End Date]
),
"UserID" ,'Table4'[UserID] ,
"Date" , [Date]
)
thank you very much!
I tried your solution and it's working good.
just one thing to say - in your solution you don't consider users with no end date,
so I added this expression to your formula.
&& [Date] <= 'Users'[end_date]
|| [Date] >= 'Users'[start_date]&& ISBLANK('Users'[end_date])
Nice mod! 🙂
You can create a new table with the formula:
Table = CALENDARAUTO()
This creates a date table that autogenerates from the dates in your data model. Thus, if you created a data model with a single row from your table, you might get lucky.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |