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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
asif082
Frequent Visitor

very urgent help needed

I needed some help with Power BI I need to merge or group by Position ID. Please see below image.

 

Please help with this, thanks alot....

 

Data.PNG

1 ACCEPTED SOLUTION
Baskar
Resident Rockstar
Resident Rockstar

@asif082

Groupby is the solution in Power Query

View solution in original post

18 REPLIES 18
Ashish_Mathur
Super User
Super User

Hi,

 

In the Query Editor, click on the 5th column and go to Transform > Fill > Down.  Now select the first 4 columns, right click > Remove Duplicates.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashih for the reply but the solution you proposed is not working, removing duplicates removed the correct row too.  see below 

 

Data1.PNG

 

 

Baskar
Resident Rockstar
Resident Rockstar

@asif082

 

Did you tried the Groupby function with ProdID.

 

 

Can you please share some sample table here. 

 

 

Baskar
Resident Rockstar
Resident Rockstar

Group BY1.PNG

okay yeah this worked thanks alot. The real data is coming from big table so I belive all I need is to use related or some dax function to extract data from master table and use group by on this new table right?

Baskar
Resident Rockstar
Resident Rockstar

@asif082

Groupby is the solution in Power Query

Hi Basker do you know how can I group by without affecting the master table. If I group by that table it will going to impact on other reports. 

 

Thanks one again.

Baskar
Resident Rockstar
Resident Rockstar

duplicate the table and group by. 

If possible share the image of your report relationship 

This solution is not working actually. 

 

The issue is when I apply group by to duplicate table the calculated Columns which fecting data from other table disappear. 

 

Here is relatioship diagram.

Capture.PNG

 

 

 

 

Baskar
Resident Rockstar
Resident Rockstar

@asif082 Try this 

Group BY.PNG

Hi,

 

You have to select the first 4 columns and then right click > Remove Duplicates.  If it still does not help, then share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

Share the link from where i can download your Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

I can't share a link as the data is connected to login based so you won't see thing any other suggestion?

 

But data is coming from 3 tables and the relationship diagram I have shared. And in engaments Substantive and acting details come.

 

Position Title and Postion type comes from position List

Position ID and Acting date comes from Engagements List

Grades from grades List

Substantive Full Name and Acting Full name comes from Employee List.Data.PNG

 

 

 

 

Hi,

 

Type the 16 rows of data which i see in your post into an Excel file and then share the link from where i can download your Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

You may download my solution workbook from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.