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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
obriaincian
Resolver I
Resolver I

Power BI- Pivot Data

Dataset

ID     Date1_Min    Date1_max    Date2_Min    Date2_max    Date3_Min   Date3_max   Date4_Min   Date4_max   
105/04/202014/05/202304/05/202116/05/202217/11/202230/12/202413/02/202109/08/2023
210/04/202017/05/202312/05/202126/05/202219/11/202202/02/202516/02/202119/08/2023
315/04/202020/05/202322/05/202129/05/202221/11/202205/02/202519/02/202126/08/2023
425/04/202028/05/202330/05/202131/05/202226/11/202230/12/202526/02/202131/08/2023

 

What I'd like to achieve is to put all the date lables into 1 column e.g. Date1, Date2, Date3 etc and then have a Min and Max column.

 

Desired Output

ID    Dates    Min                Max               
1Date105/04/202014/05/2023
1Date204/05/202116/05/2022
1Date317/11/202230/12/2024
2Date110/04/202017/05/2023
2Date212/05/202126/05/2022
2Date319/11/202202/02/2025
3Date115/04/202020/05/2023
3Date222/05/202129/05/2022
3Date321/11/202205/02/2025
4Date125/04/202028/05/2023
4Date230/05/202131/05/2022
4Date326/11/202230/12/2025

 

 

Not sure if this functionality is available with Dax?

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @obriaincian , is possible in Power Query, follow this steps:

 

1.- Select column "Identification" and select Unpivot other columns:

Bifinity_75_0-1668106990149.png

 

2.- Select Column "Atributo" and split by delimiter: "_", like image:

Bifinity_75_1-1668107117689.png

 

3.- Select Group by, and select option and fields like the image:

"Valor column" is the column of the dates

Bifinity_75_2-1668107229727.png

 

4.- The result:

Bifinity_75_3-1668107279592.png

 

Best regards

 

View solution in original post

1 REPLY 1
Bifinity_75
Solution Sage
Solution Sage

Hi @obriaincian , is possible in Power Query, follow this steps:

 

1.- Select column "Identification" and select Unpivot other columns:

Bifinity_75_0-1668106990149.png

 

2.- Select Column "Atributo" and split by delimiter: "_", like image:

Bifinity_75_1-1668107117689.png

 

3.- Select Group by, and select option and fields like the image:

"Valor column" is the column of the dates

Bifinity_75_2-1668107229727.png

 

4.- The result:

Bifinity_75_3-1668107279592.png

 

Best regards

 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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