Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Rads2929
Frequent Visitor

Best approach to building a line graph using date ranges

Hello, I need to build a line graph. The underlying data has an opened and closed date in the table. Graph y axis is counts and the x axis is number of recordIDs. A date slicer will be used to narrow or expand the date range.

 

RecordID     Opened        Closed

1                  2021-01-07   2021-05-09

 

Three lines on the graph.

Line 1 - Represents Opens

Line 2 - Represents Closes

Line 3 - Represents Remained open

 

So the record above would display the following

Line 1 - shows 1 for Jan2021

Line 2 - shows 1 for May2021

Line 3 - shows 1 for Feb2021, Mar2021, Apr2021

 

Im thinking that I may need to create a calculated table based on the the table presented above or perhaps I can use measures to accomplish this easily?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Rads2929 
Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Rads2929 
Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors