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
Hi there
I love power bi but for this time a struggling how to solve the next problem. I have a table where I have starting date and an end date where problem is fixed.
I want to create a line graph based on dates where I can see how many ticket are active on any current date as they fall between start and end date or are still active as there is no end. Can anybody help me out
For the moment I did not connect the table to a date table
Best regards
Eric
I can jump through hoops, it works perfectly
Thanks very much, I can now go to bed and have a peacefull night
You don't need a relationship with the date table, just use
Active cases =
VAR RefDate =
MAX ( 'Date'[Date] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
'Table'[Start date] <= RefDate
&& (
ISBLANK ( 'Table'[End date] )
|| 'Table'[End date] > RefDate
)
)
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!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |