Exclude header row and Totals row from dataset
Hi,
Is there a way to exclude main header row and Totals row from a dataset?
I have connected a SharePoint file to domo, the dataset has main and sub header row, totals row. I want the sub header to be shown as a main header in the dataset when I build the cards.
There is Totals row at the end I want to exclude this row as well.
Kindly advise.
PM | Period | ||||
Name | Codes | Location | Created Date | Due Date | End Date |
MP | 1002 | AUS | 11/3/2020 | 1/1/2021 | 1/3/2021 |
GD | 1003 | NYC | 11/2/2020 | 1/2/2021 | 1/3/2021 |
NV | 1004 | JPN | 12/1/2020 | 1/1/2021 | 1/5/2021 |
TS | 1005 | LDN | 12/5/2020 | 1/5/2021 | 1/6/2021 |
Totals | 4 |
Thanks!
Best Answer
-
use Magic ETL 2.0.
I assume your data arrives with generic column names "column 1", "column 2", "column 3"
add FILTER tile to exclude rows where "column 1" = ...
you'll need 3 sets of filter rules to exclude the first row, the second row and the row containing Total.
then use the ALTER tile to rename tiles and set the column types to Date, Integer etc, b/c they'll all arrive as type text.
2
Answers
-
exclude (FILTER) rows where column = "totals" and column 3 is null.
ideally you'd be able to configure your file connector to ignore row 1 and set row 2 as the header. is that an option?
otherwise you may have to also filter out row 2, and then set the remaining rows using a SELECT statement and then set the DATA TYPE with an ALTER COLUMNS tile.
0 -
Hi @jaeW_at_Onyx ,
I have connected the file using SharePoint connector and the data gets updated on daily basis, so I cannot use File upload connector.
""filter out row 2, and then set the remaining rows using a SELECT statement and then set the DATA TYPE with an ALTER COLUMNS tile.""" - Can you please elaborate - also, the only row headers my final dataset should include are Name, Codes, Location, Created Date, Due Date, End Date?
Thanks!
0 -
Thanks @jaeW_at_Onyx !
0
Categories
- 5 Domo News
- 8K Using Domo
- 1.5K Dataflows
- 1.9K Card Building
- 1.1K Connectors
- 294 Workbench
- 630 New to Domo
- 163 Dojo
- 1 Domopalooza
- 1K 日本支部