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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Super User
Super User

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

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.