Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello everyone,
I am currently struggeling with an issue which seems to be a simple problem, but not simply solvable with Power BI
Lets say I have a Table "TicketInformation". The data of this table comes from a SQL-Database and is created with a power Query command.
Every ticket has a "date" field.
Then I have a second table called "Calendar" created with the DAX Function:
Solved! Go to Solution.
Hi @dominikRieder
Try a measure like this:
Amount of time spent =
VAR _timeSpent =
SUM ( 'Table'[duration] )
RETURN
IF ( ISBLANK ( _timeSpent ); 0; _timeSpent ) If in your calendar table is a date without match in your TicketInformation table, it will return 0 instead of blank. Just make sure your calendar table is resonable. E.g. a typical situation is that you have a budget table that runs until the end of the year, so the date table needs to dates until 31.12. Which means for every day from today untill 31.12, this measure will return 0, which might be undesired behaviour. You can work around this by adding a column, e.g. IsPastDates, in you calendar which is 1 when date<=today(), and filter your visual by this IsPastDates = 1.
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @dominikRieder
Try a measure like this:
Amount of time spent =
VAR _timeSpent =
SUM ( 'Table'[duration] )
RETURN
IF ( ISBLANK ( _timeSpent ); 0; _timeSpent ) If in your calendar table is a date without match in your TicketInformation table, it will return 0 instead of blank. Just make sure your calendar table is resonable. E.g. a typical situation is that you have a budget table that runs until the end of the year, so the date table needs to dates until 31.12. Which means for every day from today untill 31.12, this measure will return 0, which might be undesired behaviour. You can work around this by adding a column, e.g. IsPastDates, in you calendar which is 1 when date<=today(), and filter your visual by this IsPastDates = 1.
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 37 | |
| 29 | |
| 24 |