Is it possible to designate a dimension group that is the difference between two others, or can I only specifically designate one timeframe. For example, I need to define a dimension that is something like the time between begin and end, where being_date and end_date are defined in the model as dimension groups.
I know I can designate, for example, the number of week in between the two dates as
DATEDIFF(WEEK, ${begin_date}, ${end_date})
Is there a way to abstract the date part in the calculation, so that I can pick the timeframe in the tile, as with the other dimension groups? In other words, is it possible to designate the difference between two time dimension groups?