Forum Discussion

gemcityzach's avatar
gemcityzach
Helper IV
2 years ago
Solved

Use Calendar for Time Intelligence on another Table with Multiple Dates

What do you think the optimal way to plot muliple dates from the same table would be in a combo column-line chart?

 

I have work units that have a 'Created' date and a 'Closed' date. I want to implement good PowerBI practices so I created a Calendar table and I've linked Created date to the 'Date' field in the Calendar column. However, I cannot have more than one active relationship.

 

On my column chart I want to plot the number of items created and then the secondary line plot should show the number of items closed in that same month. And I want the x-axis to show Month-Year as opposed to Month-Day like it is now.

 

Is there a way to do this and to use the calendar table for both Date fields (created, closed)?

  • gemcityzach Yeah, doesn't work that way other than perhaps overlaying two visuals but that's a mess. Better to create a measure for the closed count of ids like this:

    Closed Count Measure = 
      VAR __Date = MAX('Date'[Date])
      VAR __Table = FILTER( ALL('Table'), [Closed Date] = __Date )
      VAR __Result = COUNTROWS( __Table )
    RETURN
      __Result

7 Replies