Forum Discussion
Dynamic X-Axis on Stacked Column chart (Month/Day/Hour) based on Date Slicer Selection
Hi,
Use 3 overlaid charts (Month, Day, Hour) with these DAX measures as visual-level filters:
ShowMonthView = IF ( HASONEVALUE('Date'[Year]) && NOT HASONEVALUE('Date'[Month]) && NOT HASONEVALUE('Date'[Day]), 1, 0 )
ShowDayView = IF ( HASONEVALUE('Date'[Year]) && HASONEVALUE('Date'[Month]) && NOT HASONEVALUE('Date'[Day]), 1, 0 )
ShowHourView = IF ( HASONEVALUE('Date'[Year]) && HASONEVALUE('Date'[Month]) && HASONEVALUE('Date'[Day]), 1, 0 )
Filter each chart with its measure = 1 (this removes all categories, not just blanks values).
Turn OFF background, border, and title on all three (Format → General/Effects), not just transparent, fully off.
Align all three to identical X/Y/width/height.
With no categories + no chrome, the inactive charts render as literally nothing, so only the active one shows.