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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Line chart

Hi there, 

 

I am new to Power BI and would like some help on the following topic.

I would like to create a line chart from the following (Example) data:

 

System name       Scope           Close date

System a              In Scope       01 sept 2020

System b             In Scope        01 dec 2020

System c              In scope 

System d              Out of scope

System e              In Scope        01 april 2021

System f               In Scope        01 dec 2020

 

 

I would like to create a line chart that starts on 01 jan 2020 with all the systems that are in scope, and will decrease with the systems that will be closed during the years.

 

So for example on the 1st of jan 2020 there are 100 systems in scope, on  the 1st of sept 10 systems will be shut down and on the 1st of dec 2020 another 30 systems will be shut down. 

 

How can I show this in a line chart?

 

Thanks in advance for your help.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Try

 

Measure = CALCULATE(COUNT(systemclose[System name]),FILTER('systemclose',systemclose[Close date]<=max('Date'[Date])),systemclose[Scope]="In Scope")

file is attached

 

 

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Try

 

Measure = CALCULATE(COUNT(systemclose[System name]),FILTER('systemclose',systemclose[Close date]<=max('Date'[Date])),systemclose[Scope]="In Scope")

file is attached

 

 

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
MFelix
Super User
Super User

Hi

Create a calendar table for you x-axis then make the following measure:

SystemsInScope =
CALCULATE (
COUNT ( table[system name] );
FILTER ( ALL ( TABLE); Table[Close date] = MAX ( Calendar[Date] ) && Table[Scope] = "IN Scope" )
)

Then place this measure on the line values.

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.