SQL extract - displaying data in excel - excel

I am trying to create a report from a SQL data extract but my current layout is just a list like this:
I would ideally like to have the report show like this:
as it would be easier to filter and analyse:
I have tried using a Pivot table to view the data but can't seem to make it work as you can only add values to the 'value' section of the pivot table unless there's something I have missed.
Thank you in advance.

Related

How can I sort a multilevel BOM?

I have a Bill of Materials that looks like this inside of it
But for various reasons my ERP will only allow me to export the BOM as an .xlsx that looks like this
Where each member item is tied to the member item above. These means when I make a pivot table and try to find the member items of just my product, it'll only give me Assembly 1 and 3 and then I have to do another pivot table to find 1 and 3 and so forth. Some of my BOM's are 6 levels deep and making a table for each sub assembly is not ideal. Anyone have any ideas of how to handle this? My thoughts are to use something like pandas and script it out, but I wasn't sure if there was a method inside Excel that I was missing that might cover this. My end goal is to recreate something like the first picture, although the nesting isn't necessary.
I would suggest to make a table as below in Ms Access.
Table
Then make a Query as below
query
You will get a result like this.
Query result
And copy this data and paste it into excel.
Make some rules in excel, and you will get the result you wanted to.

Show raw data from table in PowerBI

is it possible to view raw data data build table? For example example if I clicked one of this number is it possible to see all raw rows that was summarize in columns customer, finance, etc. I am looking for some view that is using in pivot tables in excel/google sheets. There are option that if you clicked in one cell there will be created new tab with filtered source data.
You can use the drillthrough feature to accomplish this. Basically, create a second page and create a table with all the data you want to see.
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-drillthrough

How could I reformat this data from many rows to many columns

Ive got a bunch of data in the form of https://imgur.com/AWoWDaD.
I want a way to get it it to this form https://imgur.com/BbesneA without moving it manually.
I would prefer to use excel but I can do whatever. Any ideas?
You can use for this in Excel Pivot Tables. It does exactly what you need.
Original data (My numbers are random, not same as yours):
And after inserting a Pivot Table, I get this:
Check:
Pivot Tables

spotfire new table from file filtered

I am using spotfire client.
I have identified some records within a data table that I would like to send to a new data table. Is there some way to create a new table with marked or isolated data or using a data limiting expression on the source table? I have had to export my filtered data out and then import it back in but I am hoping there is a more direct way.
Thanks!
If you know the restrictions you need to set on your data to identify the records, you can create a second table based on the source data.
Go to the properties of the table / visualization, then go to the Data tab. You have to scroll all the way to the bottom. There you can edit the "Limit data using expression".
You could also create a detailed visualization if you want, but that is only useful if you can quickly identify the records.
Or insert a calculated column (e.g. case statement) and use this column to filter your data.

Is it possible for a excel pivot table to gather all data and make it as header?

Like this one:
![http://screencast.com/t/juLF6N2RKciy]
I want the table above to be like this one
![http://screencast.com/t/MdKrUANnZrv9]
I hope it make sense, is that possible for a pivot table without any scripts?

Resources