Forum Discussion
Time intelligence - Show dates with no data on date axis
Dear all
I have a problem which i hope you can help me solve.
I am trying to visualize open vacancies (talent recruitment) over time - could be month or by date.
I have following dataset
| Name | RegistrationDate | ApplicationDeadline | NumberofVacancies |
| A | 01-01-2022 | 01-03-2022 | 1 |
| B | 01-01-2022 | 01-03-2022 | 1 |
| C | 01-02-2022 | 01-04-2022 | 1 |
| D | 01-06-2022 | 01-08-2022 | 3 |
and the visual that i want to build is seen on the picture below:
- Anonymous4 years ago
Hi Nilsstigel ,
Please refer to my pbix file to see if it helps you.
Create a new table.
Months = DISTINCT ( SELECTCOLUMNS ( CALENDARAUTO (), "MonthNo.", MONTH ( [Date] ), "Month", FORMAT ( [Date], "MMM" ) ) )Then create a measure.
Measure = CALCULATE ( SUM ( 'Table'[NumberofVacancies] ), FILTER ( ALLSELECTED ( 'Table' ), SELECTEDVALUE ( Months[MonthNo.] ) >= MONTH ( 'Table'[RegistrationDate] ) && SELECTEDVALUE ( Months[MonthNo.] ) <= MONTH ( 'Table'[ApplicationDeadline] ) ) )Or a column.
column = CALCULATE ( SUM ( 'Table'[NumberofVacancies] ), FILTER ( ALLSELECTED ( 'Table' ), Months[MonthNo.] >= MONTH ( 'Table'[RegistrationDate] ) && Months[MonthNo.] <= MONTH ( 'Table'[ApplicationDeadline] ) ) )Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi Nilsstigel ,
Please refer to my pbix file to see if it helps you.
Create a new table.
Months = DISTINCT ( SELECTCOLUMNS ( CALENDARAUTO (), "MonthNo.", MONTH ( [Date] ), "Month", FORMAT ( [Date], "MMM" ) ) )Then create a measure.
Measure = CALCULATE ( SUM ( 'Table'[NumberofVacancies] ), FILTER ( ALLSELECTED ( 'Table' ), SELECTEDVALUE ( Months[MonthNo.] ) >= MONTH ( 'Table'[RegistrationDate] ) && SELECTEDVALUE ( Months[MonthNo.] ) <= MONTH ( 'Table'[ApplicationDeadline] ) ) )Or a column.
column = CALCULATE ( SUM ( 'Table'[NumberofVacancies] ), FILTER ( ALLSELECTED ( 'Table' ), Months[MonthNo.] >= MONTH ( 'Table'[RegistrationDate] ) && Months[MonthNo.] <= MONTH ( 'Table'[ApplicationDeadline] ) ) )Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.