Forum Discussion
Possible Tip/Trick: Dynamic Date Dimension Table
Hi
Thanks for this
What would you do if you wanted more than one calendar. Say an Invoice Date plus an Order Date Calendar
Would you need two new tables or could one be set up (called DateTable) and filter by date type in the measure somehow?
Is this possible
Thanks
EDIT. To do the above
ALeef Great Job..Only needs a SWITCH for the month names and set...
RJ You can create a second Calendar or use the same with inactive relantionship & USERELANTIONSHIP.
- ALeef10 years agoResolver II
konstantinos : Why would you use a switch and type in all the names, rather than use the format function? Is it a perfromance difference?
RJ : Check out http://community.powerbi.com/t5/Desktop/Transitive-Relationships/m-p/8563#U8563 . It's an interesting concept, and apparently having inactive relationships is fine - the software is still smart enough to filter right through. It wasn't exactly what I ended up using, but that's because I wasn't using a slicer, I wanted a clustered column chart.
- konstantinos10 years agoMemorable Member
ALeef Apologies..SWITCH is slower of course. To be honest I wasn't aware that FORMAT can return months and days due to always importing Date Table..
Thanks, always learning..