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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Line chart with item status

Hello all,

 

I hope you can help me. I would like to have a line chart that shows the status of an item. An item can be open or closed. Open items can be overdue. My fact table looks like the one below.

My goal is to have a line chart with two lines. One that shows the # of open items and one that shows the # of open items that are overdue.

 

Any advice on how to do this would be much appreciated, thanks!

 

ItemNoCreateDateDueDateCloseDate
11-1-20201-4-202031-3-2020
21-1-20201-4-202031-3-2020
31-1-20201-4-20201-6-2020
41-1-20201-4-20201-6-2020
51-1-20201-5-20201-6-2020
61-1-20201-6-202031-5-2020
71-1-202031-12-2020 
81-1-202031-12-2020 
91-1-202031-12-2020 
1015-3-202030-4-202031-7-2020
1115-3-202030-4-202031-7-2020
1215-3-202030-4-202031-7-2020
1315-3-202030-4-202031-7-2020
1415-3-202030-4-202031-7-2020
1515-3-202030-4-2020 
1615-3-202030-4-2020 
1715-3-202030-4-2020 
1815-3-202030-4-202131-3-2020
1915-3-202030-4-2021 
2015-3-202030-4-2021 
2115-3-202030-4-202131-12-2020
2215-3-202030-4-2021 
2315-3-202030-4-2021 
2415-3-202031-12-2020 
2531-5-202031-8-202030-11-2020
2631-5-202031-8-202030-11-2020
2731-5-202031-8-202030-11-2020
2831-5-202031-8-202030-11-2020
2931-5-202031-8-202030-11-2020
3031-5-202031-8-2020 
3131-5-202031-8-2020 
3231-5-202031-8-2020 
3331-5-202031-8-2020 
3431-5-202031-8-202015-7-2020
3531-5-202031-8-202015-7-2020
3631-5-202031-12-2020 
3731-5-202031-12-202030-11-2020
3831-5-202031-12-2020 
3931-5-202031-12-20201-2-2021
4031-5-202031-12-2021 
4131-5-202031-12-2021 
4215-6-202031-10-202031-8-2020
4315-6-202031-10-202031-8-2020
4415-6-202031-10-202031-12-2020
4515-6-202031-10-202031-12-2020
4615-6-202031-10-202031-12-2020
4715-6-202031-10-2020 
4815-6-202031-10-2020 
4915-6-202031-10-2020 
5015-6-202031-10-2020 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I updated the sample pbix file(see attachment), please check whether that is what you want.

yingyinr_0-1614238453727.png

Best Regards

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

What's the calculation for the "number of open items" and "number of open items that are overdue"? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur , thank you for you message.


# of Open Items = # ItemNo where ItemTable[CloseDate] > Calendar[Date]

# of Overdue Items = # Open Items where ItemTable[DueDate] < Calendar[Date]

 

Kind regards

Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file(see attachment) for you, please check whether that is what you want.

Line chart with item status.JPG

Best Regards

Anonymous
Not applicable

@Anonymous , thank you very much! It is almost what I would like to achieve, but for now the calculation doesn't work. For example, if you look at the items with a create date of 1-1-2020 (1 January 2020, dd-mm-yyyy):

ItemNo CreateDate DueDate CloseDate
1 1-1-2020 1-4-2020 31-3-2020
2 1-1-2020 1-4-2020 31-3-2020
3 1-1-2020 1-4-2020 1-6-2020
4 1-1-2020 1-4-2020 1-6-2020
5 1-1-2020 1-5-2020 1-6-2020
6 1-1-2020 1-6-2020 31-5-2020
7 1-1-2020 31-12-2020
8 1-1-2020 31-12-2020
9 1-1-2020 31-12-2020

 

On 1-1-2020 there are 9 open items. 2 are closed on 31-3-2020, so on that date there are 7 open items. On 1-4-2020 4 items are overdue, of which 2 are closed. So on 1-4-2020 there are 7 open items, of which 2 are overdue. And on 1-5-2020 there are 7 open items, of which 3 are overdue.

 

Thanks again,

Frank

Anonymous
Not applicable

Hi @Anonymous ,

I updated the sample pbix file(see attachment), please check whether that is what you want.

yingyinr_0-1614238453727.png

Best Regards

Anonymous
Not applicable

@Anonymous , thank you so much. This is exactly what I was looking for!

amitchandak
Super User
Super User

@Anonymous ,  For Open Item, refer this blog

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

For overdue  add additional condition && Table[DueDate] >max(Date[Date])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak , thank you very much for sharing. So far, I didn't make it work, but I need to put some more time into it.

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.