Forum Discussion
Multiple dates on x-axis
- 7 years ago
Hi nm1729 ,
In your scenario, we can create a date table with Hierarchy, please refer to the following example:
Assume that we have tables like below:
Then we can use the following DAX query to create a date table:
date = ADDCOLUMNS ( CALENDAR ( DATE ( 2019, 1, 1 ), DATE ( 2019, 2, 20 ) ), "week", WEEKNUM ( [Date], 1 ), "month", MONTH ( [Date] ) )Create relationship between date table with these two tables, then drag the week and month to the date creating the date Hierarchy:
Then we can create the visual, after that, we can drill down the data from month to week to day:
Best Regards,
Teige
Hi nm1729 ,
In your scenario, we can create a date table with Hierarchy, please refer to the following example:
Assume that we have tables like below:
Then we can use the following DAX query to create a date table:
date =
ADDCOLUMNS (
CALENDAR ( DATE ( 2019, 1, 1 ), DATE ( 2019, 2, 20 ) ),
"week", WEEKNUM ( [Date], 1 ),
"month", MONTH ( [Date] )
)Create relationship between date table with these two tables, then drag the week and month to the date creating the date Hierarchy:
Then we can create the visual, after that, we can drill down the data from month to week to day:
Best Regards,
Teige