Picture Here Please
Please look, each worksheet header appears as row.
Your question is pretty vague, but if you need your first row of data to be the header then click on the small icon of a table in the upper left-hand of the table and select "Use First Rows as Headers". I have attached a photo to help.
You can promote the headers in the nested tables, then expand the tables using the 'correct' column names.
Currently in your #"Expanded Custom" step, you have a Data column, which is a nested table like the below
If you insert a new step after the #"Expanded Custom" step and add the following;
= Table.TransformColumns(#"Expanded Custom", {"Data", each Table.PromoteHeaders(_)})
your nested tables in the Data column will look like this:
Then you will just need to change your ExpandTable column step so that rather than referring to Column1, Column 2 etc it uses the actual column names
Related
In powerBI, I using the python script and generate one table. The generated table is a nested table. Each row value is actually a table. and so now I want to use DAX to copy one specific row value(which is a table), just the "dataset_filtered" table shown as below.
what's the DAX code for this ? or any good suggestions ?
The nested table
This is M rather than DAX.
Click the drop down arrow in the name column to filter the row you want.
Click the expand arrows in the Value column to expand the table.
I am currently using SQL developer to look through a table in a database that has many columns. It would be ideal if in the single record view to have the column names sorted? I have been unable to find any option to achieve this.
EDIT
The single record view occurs in a couple of places. This includes selecting a table in the list and then selecting the data tab. Then right click on a record.
This does not require writing any SQL.
The single record view is sorted:
SELECT COLUMN_NAME, COLUMN_ID
FROM user_tab_columns
WHERE table_name = 'YOUR_TABLE'
ORDER BY COLUMN_ID;
It is just sorted by the COLUMN_ID which corresponds to the order in which the columns were defined in the DDL statement(s) that created the table.
It is not sorted alphabetically (which is what you are probably after) - but you can get it sorted alphabetically if you order the columns alphabetically in the original DDL statement or by renaming the columns (to something else and then back to the original name and recreating indexes).
I have a BIRT Excel Report with 10 columns. I have a query which executes and brings the data for all the 10 columns.
However, based on one of the input parameters, i need to display just 8 columns. I am able to hide the remaining 2 columns but i would like to delete those 2 columns from the report so that user does not see the hidden columns.
I tried to change the query but i am unable to dynamically set the select parameters.
Is there a way either in Query or in BIRT to remove few columns based on an input condition.
You cannot delete the columns, but it's sufficient to hide them dynamically using the column's visibility expression. You can add an aggregation to the table, using the MAX function for the column data (let's call it max_name).
E.g. if your table column shows the DS column NAME and you want to hide the column if NAME is empty for all rows:
Add an aggration (let's call it MAX_NAME) to the table, with the aggregation function MAX and the expression NAME. Then in the visibility expression of the table column, use !row["MAX_NAME"] as the expression.
After drag and drop the dataset. Right click on column header and select the delete column option.
I have a table in Mac Numbers which has a column with checkbox. I am trying to copy only those rows in a second table which are check marked.
I also want to extend this solution to multiple tables; I will have multiple tables having a column with checkbox. I want to copy all those rows into a single table which are check marked.
I tried with LOOPUP function but it didn't help.
How can we do this?
I worked it out in 2 steps -
Used IF condition to put column data if checkbox is checked else put "NA".
Then put a filter on the new table to filter out all rows which has that column with values "NA".
I am trying to get the distinct records from a table, as many duplicate rows are coming from the following query
select * from sales_details_view;
When I query the following query in pl/sql developer, I am getting correct results
select distinct * from sales_details_view;
But when I use the same query in an interactive report in Oracle APEX 4.1, it is giving me the following error
The report query needs a unique key to identify each row. The supplied
key cannot be used for this query. Please edit the report attributes
to define a unique key column. ORA-01446: cannot select ROWID from, or
sample, a view with DISTINCT, GROUP BY, etc.
You need to set Link Column (in Report Attributes) to something other than "Link to Single Row View". You can set it to either "Exclude Link Column" or "Link to Custom Target".