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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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.

Top Solution Authors