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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
BenMoores
New Member

returning multiple dates from multiple rows in a single row

I'm incredibly new to powerBI, only started last week,please be gentle! 

I 4 calculated columns, each returning a unique date for a specific ID, it looks like this when I put it into as table:

 

IDDate1Date2Date3Date4
1%DateValue%   
1 %DateValue%  
1  %DateValue% 
1   %DateValue%

 

It works, but it's very clunky, so I'd like to have it display like this:

 

IDDate1Date2Date3Date4
1%DateValue%%DateValue%%DateValue%%DateValue%
2%DateValue%%DateValue%%DateValue%%DateValue%
3%DateValue%%DateValue%%DateValue%%DateValue%
4%DateValue%%DateValue%%DateValue% %DateValue%

 

I've been playing around with a few things, importing the data (from CSV) into another table and manipulating it there with relationships on the ID etc. but I just don't understand what's happening there well enough to get this working. Can anyone help?

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @BenMoores 

 

You can do it easily in Power Query, go to Transform Data > select your table > Home > Group By > set everything as on the screenshot below and click ok.
 image.png

 

also, see the attached for reference.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Thanks for the reply Mariusz 🙂 As the data is in calculated columns, I'm not able to bring that into the transform. I'll google and see if there's a way to do this but it seems it might not be possible

Hi @BenMoores 

 

Instead of Calculated column, you can create a custom column in Power Query and perform group by ( as explained by @Mariusz )

 

You can read up here ( how to add a custom column in Power BI)

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-add-custom-column

Thanks

Deepak

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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