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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Can somebody help me to organize below Unstructured data

Below is the table I have:

PBItable.PNG

 

 

Question : I have to create a Dynamic Clustered column chart with Year on X-Axis and
and dynamically changing measures like AvgAge and MaxSalary on Y - Axis based on slicer selection.

Can anyone 

1 ACCEPTED SOLUTION
KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

You have multi headers data structure. You can follow the steps below:

1. Ensure the columns are Column1,2,3 ... then apply the transpose function (Transform > Transpose)

2. use the fill down function (Transform > Fill > Fill Down) to the column contains the year (i.e. 2016, 2017)

3. Use the merge column function (Transform > Merge Column) to merge the two headers (I,e. Age ... 2016) with no delimiter

4. Transpose the table

5. Promote the header

6. Unpivot the "Salary" and "Incentive" Columns (You will get "Attibute" and "Value" columns)

7. Use the split Column function to split the "Attibute" column by number of character (4 - the number of character for year).

8 Rename the columns.

 

For the average and max, you can use the DAX to handle it.

 

Regards

KT 

 

View solution in original post

2 REPLIES 2
KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

You have multi headers data structure. You can follow the steps below:

1. Ensure the columns are Column1,2,3 ... then apply the transpose function (Transform > Transpose)

2. use the fill down function (Transform > Fill > Fill Down) to the column contains the year (i.e. 2016, 2017)

3. Use the merge column function (Transform > Merge Column) to merge the two headers (I,e. Age ... 2016) with no delimiter

4. Transpose the table

5. Promote the header

6. Unpivot the "Salary" and "Incentive" Columns (You will get "Attibute" and "Value" columns)

7. Use the split Column function to split the "Attibute" column by number of character (4 - the number of character for year).

8 Rename the columns.

 

For the average and max, you can use the DAX to handle it.

 

Regards

KT 

 

Anonymous
Not applicable

Hi @KT_Bsmart2gethe ,

Thank you so very much for this awesome solution I tried it out and it worked amazingly step by step as you explained.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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