cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karlagb20 Member
Member

HELP with table

Hello,

 

When I upload my sharepoint list to power bi it uploads correctly and in the right order when I look at the query editor BUT when I add the data to the table values or matrix everything is off. How can I organize the power BI table to be in order like in the query editor?

 

please help

 

Capture.PNGorder should look like thisCapture.PNGtable is not organized

7 REPLIES 7
MitchM Member
Member

Re: HELP with table

If I am understanding correctly, you want the table to look like the sharepoint list, which is unsorted. PowerBI will autosort based on first column added. One way around this would be to add an index column in the query editor and then sort the table on this. Go to "Add Column" and then Select "Index Column" This shoul create an index based on the native sort order.

Usates Member
Member

Re: HELP with table

I'm just taking a stab here as I'm not as savy as most in this forum.  I can clearly see that when you put the data in the matrix, it is sorting alphabetically in column one and you don't want that.  I would add an "index column" at the end of your table in the query editor.  Then, put your data in the matrix and sort it by the index column.  Then you could hide the index column.  I hope this helps.

Super User
Super User

Re: HELP with table

In the PowerQuery editor, add an index column to the imported table.

index.jpg

Then, you can either

  • In the model set the sort by column of [column 1] to be the index column.
  • Pull the index column into your table, sort it by that then set it to be so narrow you can't see it.

Might I also suggest, in the PowerQuery editor adding the following steps.

  • Remove top 1 row
  • Use top row as header

That way our table will have the same column headers as our sharepoint list.

 

karlagb20 Member
Member

Re: HELP with table

@MitchM @jdbuchanan71 @Usates  is there a way I can organize it by rows?

 

it should go like this...... even though they are all on the same column I would like to divide the columns by sections like the firs picture. When I add the first column it adds everything at once and it looks all crowded instead of being in sections within the column

 

POWER

 -project 1

- project 2

 

O&G 

-project 1

-project 2

Super User
Super User

Re: HELP with table

If you add the index column to your PowerQuery and sort by it, the blank rows that break up the sections will be in the correct spot in your table.

MitchM Member
Member

Re: HELP with table

Edit: Agree with @jdbuchanan71, beat me to it.

Usates Member
Member

Re: HELP with table

Once you pull in Column 1, click the down arrow and make sure "Show items with no data" is selected.  This should maintain the spacing you have in your data model.

 

Screenshot.png

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)