How to transform my Excel table so the column name is now a value of its own? - excel

I have this table below:
What I want to do is to transform/transpose it to be like this:
Anyone knows how to do this? I know this can be done by PowerQuery, but I can't figure out which function I should use. Thanks for your help!

Load the table into the Query editor, select the first column and then click the ribbon command "Unpivot other columns". Rename the resulting columns as desired.

Related

plotting data from a txt file with excel

I have a text file that I will upload it. I wanna to select just 2 columns and then plot it with something like excel!
the problem is that when i want to select a column, those things that selected, is not just one column. I try it to open with excel. however it opened but there was same problem again. I'm just wanna select all data of one column and then plot it.
I can not even copy or a paste a certain data. all data will copy instead.
My English is not adequate, I know. Hope to could convey my mean.
Any help will be appreciated.
file
In excel, select the first column which should contain all the columns from your text file.
In the excel menus (or using the search field), select « convert ». Then chose the type « delimiter », and select the delimiter in your excel file. Either a comma, or a tabulation, etc.
Click ok and this should do the trick

Is there a way to add range slicer to Excel worksheet for data filtering?

I'd like to add range slicers to an Excel worksheet for quick data filtering. However, I could not find such a control from Excel, and based on quick Googleing, it seems to be included in Power BI. I'd assume you can either get it from some (free) add-in or create it yourself.
Many thanks for anyone who can help on this!
Yes, you can add slicers in Excel. You just need to convert your data to a table first.
Select your data
Press ctrl + t or go to Insert -> Table.
Then select if your table has headers and click OK.
Now you will see the options to add slicers.
Still with your table selected (or any cell inside it), navigate to Insert -> Slicer.
Mark the column you want and it is done.
You can find a good explanation on this link. But fell free to reach out in the comments.

How to create a new table from Query data and change rows to column in Power BI

I am new to Power BI. I have searched a solution, but I can't find the one match my issue.
I use direct query to SQL Server to generate data table in Power BI. My query result as below:
And I want to create a new table and transform the data to be as below:
Really appreciate any help or idea.
Thanks
You need to pivot the Factory column to get the desired result.
In Power BI Desktop designer, click Transform data button from the Home ribbon tab to open Power Query Editor. First, delete the Comment column (or don't select it at first place) by right clicking on it's title and select Remove. You don't need it. Then select Factory column and click Pivot Column button from Transform tab:
and select Volume for values column:
This will pivot the column, i.e. make a separate column for each of the values in it, and give you the desired result:
In addition (you said you are using a DQ to get the data), you can also do the same transformation in the database query too.

Count how many times a particular value appears with respect to value in another column

I want to count how many times a particular value appears with respect to value in another column. ( Apologies, as i am struggling to put it in words properly. Maybe that's why I couldn't google it)
I am using spotfire and actual data set is quite big.
As per my dummy data - i want 5 more columns - a,b,c,d,e which will give me counts like table - 'what I want'
Please if someone can help.
Thanks,
AP
what you're looking for is called a Pivot Table. it doesn't look quite like what you've got in your example, and because you haven't provided a lot of information about what you're trying to do in the end, I'm working under the assumption it's just a quick example you put together? if that's not the case, please clarify your question with your end goal and I'll update my answer.
to create a Pivot Table in Spotfire:
click the Insert menu at the top of the screen
choose Transformation...
in the Insert Transformation dialog that appears, choose your data table from the top dropdown, and choose Pivot from the bottom one, then click Add...
configure the pivot like I've done in the screenshot below
click OK and confirm the Insert Transformation dialog

In Excel is there any way to turn columns separated by "Text to Colums" into their own rows? Example given inside

1. Original table with concatenated fields & 2. table after use of "Text to Columns"
3. Is this even possible?
Hello! I'm pretty new to the fancier formula side of Excel and I have a large amount of data that has been saved in concatenated fields. The Contact column, contains all contacts for a single entity/hospital, and I have separated these contacts into their own columns (See images 1-2). What I want to know is if there's any shorthand way to create additional row items that contain the same Hospital, Address etc., but transpose these Contacts from columns into rows (image 3.... this was done by hand just to give an example). Thanks for your help!
Can you use Power Query? (Get and Transform)
You might have to do a download and install to set it up in Excel 2010 though.
https://support.office.com/en-us/article/Split-a-column-of-text-Power-Query-5282d425-6dd0-46ca-95bf-8e0da9539662
You could try a Pivot Table. Get the data into a pivot table and put your contacts in the "values" list.
Use this to guide you how to use a pivot table:
Pivotable Tutorial
In Excel 2016 there is a Text to Columns button on the Data tab which fires up a wizard that will do what you are askin for.

Resources