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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Majad_Chowdhury
Advocate II
Advocate II

Joining lines in line chart

Hi all 🙂 

I'm trying to create a visual where 2 seperate lines join. Currently im at the following stage:

 

Majad_Chowdhury_0-1635341565591.png

We can see the blue line does not connect to the red line.

 

The lines are based off the values in the following table:

Majad_Chowdhury_1-1635341624331.png

Ideally I think i'd need to take the value from "MaxRawNegativeNew" for the 08/04/21 and replicate it in the "MaxRawPositiveNew" column in the corresponding date. 

 

I'm just not sure how to achieve this, from the research I've done thus far I'm guessign it involves "FIRSTNONBLANK" but my knowledge of implementing this is limited.

 

Thanks in advance wizards!

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Try creating a measure with the sum of both columns (or sum the measures if you have them):

Full line = SUM(Table[Column 1] + SUM(Table[Column 2])

Create a measure for the blue line (or use the corresponding measure):

Blue Line = SUM(Table[Column1])

 

add both measures to the line visual (Blue line measure on top in the values bucket)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Majad_Chowdhury ,

 

Create two measures and add the date filter conditions.

Set the type of x-axis  to categorical.

Measure = CALCULATE(MAX(financials[ Sales]),FILTER(financials,financials[Date]<>DATE(2014,4,1)&&financials[Date]<>DATE(2014,5,1)))
Measure 2 = CALCULATE(MAX(financials[ Sales]),FILTER(financials,financials[Date]=DATE(2014,4,1)||financials[Date]=DATE(2014,5,1)))

Vlianlmsft_0-1635833131434.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PaulDBrown
Community Champion
Community Champion

Try creating a measure with the sum of both columns (or sum the measures if you have them):

Full line = SUM(Table[Column 1] + SUM(Table[Column 2])

Create a measure for the blue line (or use the corresponding measure):

Blue Line = SUM(Table[Column1])

 

add both measures to the line visual (Blue line measure on top in the values bucket)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






lbendlin
Super User
Super User

You cannot do this in DAX measures. You will need to add the two missing data points in Power Query  or a calculated table and append them to the original data.

 

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors