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! Learn more

Reply
CT1
New Member

Connect two line values into one line

Hello,

Hope you are doing great, It is my first time using the community help and not sure if my explanaiton is clear enough.

 

I have been working with my Power Bi dashboard, using line and clustered column chart, dates are in the shared axis, I would like to reflect values on one line,  values on A until Jan 2 and then from Jan 3 the values on B. 

 

Dates

 A BResult
1/1/202210%8%10%
1/2/202211%10%11%
1/3/202210%9%9%
1/4/202212%4%4%
1/5/202213%3%3%

 

Thanks in advance,

 

Regards

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @CT1 

 

I wrote A and B as metric A2 and B2 respectively, and the new metric is also based on A2 and B2. Do you see if it fits your situation this time?

Measure A = IF(DATEDIFF(SELECTEDVALUE('Table'[Dates]),"2022/1/3",DAY)>0,[A2],BLANK())
Measure B = IF(DATEDIFF(SELECTEDVALUE('Table'[Dates]),"2022/1/3",DAY)<=0,[B2],BLANK())

vzhangti_0-1646184641308.png

 

Best Regards,

Community Support Team _Charlotte

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

View solution in original post

7 REPLIES 7
v-zhangti
Community Support
Community Support

Hi, @CT1 

 

You can try the following methods.

Measure A = 
IF(DATEDIFF(SELECTEDVALUE('Table'[Dates]),"2022/1/3",DAY)>0,SELECTEDVALUE('Table'[A]),BLANK())
Measure B = 
IF(DATEDIFF(SELECTEDVALUE('Table'[Dates]),"2022/1/3",DAY)<=0,SELECTEDVALUE('Table'[B]),BLANK())

Replace Measure A and Measure B with the original lines A and B in the figure.

vzhangti_0-1646101066991.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Hello @v-zhangti,

 

It is almost there, the challenge now is that Table(A) and Table (B) are actually measures, and I wont be able to use the measures that you recomended me.

 

Can you help me with that please?

 

Thank you for your help!

v-zhangti
Community Support
Community Support

Hi, @CT1 

 

I wrote A and B as metric A2 and B2 respectively, and the new metric is also based on A2 and B2. Do you see if it fits your situation this time?

Measure A = IF(DATEDIFF(SELECTEDVALUE('Table'[Dates]),"2022/1/3",DAY)>0,[A2],BLANK())
Measure B = IF(DATEDIFF(SELECTEDVALUE('Table'[Dates]),"2022/1/3",DAY)<=0,[B2],BLANK())

vzhangti_0-1646184641308.png

 

Best Regards,

Community Support Team _Charlotte

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

NimaiAhluwalia
Continued Contributor
Continued Contributor

Hello @CT1 

 

Can you please highlight a little more on the requirement with some visual representation of the desired output.

 

 

Sales, old metric - new metric .jpg

 

Hello @NimaiAhluwalia, here is my challenge, I have two metrics the old one and the new one, I want that the old one reflect until February nothing after and the new one from march on but nothing previous that date.

both of them are combination of some metrics thats way they will show numbers all the time.

Do you have any idea of how I can do this? 

 

Thank you for all your help !!

Is there any specific condition to be followed
If not, have in Old metric add filter for dates less than 28th Feb 2022 and in New metric dates greater than 28th Feb 2022


If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
Proud to be a Super User!!

I tried to create a filter but I couldnt make it work, once I put those filters the data is not complete because it will follow before or after that metric.

Any idea ?   

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 Kudoed Authors