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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
bobbob123
Helper III
Helper III

How to organize and display unstructured data

Hi,

 

I have the following unstructured data.

bobbob123_0-1659329447849.png

After loading it on Power BI. I'm not sure how to organise it so that my final visual looks something like this.

 

bobbob123_2-1659330355630.png

 

 

Basically, i need the score to be my x-axis, i need two secondary axis, the school (left hand side) and state (right hand side). The school data will be a column graph, where as the state is a line graph. 

 

I will also need a slicer where users can select what year and it will display both sets of data.

 

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bobbob123 ,

 

Is the following image shown the result you want?

 

vmengzhumsft_0-1659520892755.png

Based on the fact that your own data format is not very convenient for manipulation, I have modified the format to be this:

 

vmengzhumsft_1-1659520892759.png

 

Immediately afterwards, we need to help us complete the calculation by creating the measure. A total of three measures need to be created, as the following shows:

 

school = CALCULATE(SUM(Sheet1[Value]),'Sheet1'[Type]="school")

 

state 2020 = CALCULATE(SUM('Sheet1'[Value]),FILTER('Sheet1','Sheet1'[Type]="state"&&'Sheet1'[Year]=2020))

 

state 2021 = CALCULATE(SUM('Sheet1'[Value]),FILTER('Sheet1','Sheet1'[Type]="state"&&'Sheet1'[Year]=2021))

 

Then put the three measure into visual, and put “year” into slicer, you can get what you want.

vmengzhumsft_2-1659520892761.png

For better understanding , you can view this PBIX file.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @bobbob123 ,

 

Is the following image shown the result you want?

 

vmengzhumsft_0-1659520892755.png

Based on the fact that your own data format is not very convenient for manipulation, I have modified the format to be this:

 

vmengzhumsft_1-1659520892759.png

 

Immediately afterwards, we need to help us complete the calculation by creating the measure. A total of three measures need to be created, as the following shows:

 

school = CALCULATE(SUM(Sheet1[Value]),'Sheet1'[Type]="school")

 

state 2020 = CALCULATE(SUM('Sheet1'[Value]),FILTER('Sheet1','Sheet1'[Type]="state"&&'Sheet1'[Year]=2020))

 

state 2021 = CALCULATE(SUM('Sheet1'[Value]),FILTER('Sheet1','Sheet1'[Type]="state"&&'Sheet1'[Year]=2021))

 

Then put the three measure into visual, and put “year” into slicer, you can get what you want.

vmengzhumsft_2-1659520892761.png

For better understanding , you can view this PBIX file.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

How did you manipulate the original data set to make it look like the one in your second image? 

Anonymous
Not applicable

Hi @bobbob123 ,

 

Have you solved your question?

As @selinaz  descibes, you can follow those steps to modify your data.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Hi @bobbob123 ,

 

Please refer the following steps:

1.click "use first row as headers"

selinaz_0-1660118791896.png

2.select the first column and click on the drop-down arrow for "unpivot column" and select "unpivot other columns"

3.still select the first column after unpivoting, and then click "split column"---"by delimiter"

selinaz_1-1660119018395.png

selinaz_2-1660119086865.png

4.finally, you can change the column name to what you want and you can get the second image as the above shows.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Best regards.

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors