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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
SureshbabuB
Regular Visitor

Help with grouping data

Hello team,

I'm relatively new to Power BI and need some help please.

I have a requirement to display the following data in a summarised view

IDNameInitialsAppointment date
206Person1SB24/11/2022 
206Person1SB28/04/2022 
206Person1SB09/11/2021 
207Person2AB24/11/2022 
207Person2AB28/04/2022 
208Person3XY09/11/2022 
208Person3XY15/05/2022 

 

Expected result

IDNameInitialsAppointment date1Appointment date2Appointment date3
206Person1SB24/11/202228/04/2022 09/11/2021
207Person2AB24/11/202228/04/2022  
208Person3XY09/11/202215/05/2022 0 

 

Any suggestions to do this is in Power BI much appreciated.

 

Thanks,

Suresh

5 REPLIES 5
Syk
Super User
Super User

There's probably a decent way to do this but I'm curious why you're trying to. For reporting it's typically much easier to have all the dates in the same column, what are you trying to create?

Thank you, its a requirement to hide the repeating values and show the distinct dates in a single row. i.e one row per person.

I have done these in SQL and in other tools, its bit tricky here in Power BI. will keep trying.

andhiii079845
Solution Sage
Solution Sage

Hi,

You can try PIVOT in power query editor.
https://exceltown.com/en/tutorials/power-bi/powerbi-com-and-power-bi-desktop/power-bi-data-sources/p...

 





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

Proud to be a Super User!




Thank you tried but its not working.

You need a rank of the date within a PersonID like this

PersonDateRank
12023-01-01  1
12022-12-01  2
22023-01-01  1
22022-12-01  2

Nevertheless, why do you want to do this kind of transformation 🙂





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

Proud to be a Super User!




Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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