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
bellotma
New Member

Merging two lines in a table

Hello, I have a table in Power BI which shows two values (Plan and Forecast) of each month in two different columns and two different lines. This means each line is duplicated, in one case I have the Plan value and Forecast 0, in the second case I have Plan 0 and the Forecast value. I'd like to merge the two lines in one, containing both Plan and Forecast values. Below you can find an example

Could someone help me? Thanks!

 

Line Item IDMonth NumberDatePlanForecast
DA50901/09/202301200
DA51001/10/202301200
DA51101/11/202301200
DA51201/12/202301200
DA50801/08/202301200
DA50501/05/202301200
DA50301/03/202301200
DA50601/06/202301200
DA50701/07/202301200
DA50101/01/202301200
DA50201/02/202301200
DA50401/04/202301200
DA50501/05/202310000
DA50301/03/202310000
DA50601/06/202310000
DA50701/07/202310000
DA50101/01/202310000
DA50201/02/202310000
DA50401/04/202310000
DA50901/09/202310000
DA51001/10/202310000
DA51101/11/202310000
DA51201/12/202310000
DA50801/08/202310000
1 REPLY 1
rajendraongole1
Super User
Super User

Hi @bellotma - In Power query editor, you can perform group by function based on item id , month and date as below snapshot.

 

rajendraongole1_0-1720464133808.png

 

 

final output should be look as below:

rajendraongole1_1-1720464155745.png

 

 

using the Group By feature and taking the maximum value of Plan and Forecast

 

Hope it helps, if it is still not resolved.

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





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