cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhmiller89
Helper V
Helper V

Creating date based measures

I have a table called "HelpDeskIncidents" that includes columns such as "OpenDate" "ClosedDate" and "IncidentNumber"

 

I want to be able to show, in one visual, the number of tickets opened AND closed within a certain date period. So if I have a graph it would show that on January 2, 2018 there were, let's say, 36 tickets opened and 28 closed. 

 

I'm not sure how to write these measures any help is greatly appreciated. 

 

Oh, I have a date table and I have the "OpenDate" as the key with the date table if that helps 

1 ACCEPTED SOLUTION

Here's a simplified version (attached). Just need 2 date tables.

 

 


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Hmm, here is one approach.

 

Create 3 date tables. Date table 1 (Calendar1) relate to OpenDate in your table. Create a column in this table that does a count of RELATED or RELATEDTABLE. Date table 2 (Calendar2) relate to ClosedDate in your table. Create the same column in this table. Date table 3 (Calendar3) relate to Calendar1 and Calender2. Use Calender3 in your Axis and the values from calculated columns in your other 2 date tables.


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

OK, a bit different than I originally planned, but check this out (attached).

 


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

Here's a simplified version (attached). Just need 2 date tables.

 

 


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors