I have two tables that I am working with. One is a large dataset with about 50 columns. The second table is the Table.Schema()
of the first dataset.
I am trying to build a data quality report similar to Table.Profile()
but with far more customization. However I am unable to even recreate the base elements of Table.Profile such as Counta or Count of null for each source column.
How I can use the Schema Name
values to perform the Count calculation on the Data Source column that the Schema Name represents? See Schema table below for desired output, counting the number of nonblank values in the data source.
NOTE: due to the large number of columns I am looking to build this formula so it is dynamic based off of the name value rather than hardcoding the 50+ column names into formulas
Data Source
ID | Status | Created | Modified
1 | Active | 1/1/19 | null
2 | null | 1/5/15 | 1/6/15
3 | Active | null | null
Schema
Name | Type | Counta
ID | Number | 3
Status | Text | 2
Created | Date | 2
Modified | Date | 1
Table.SelectColumns(table, {"columnname1", "columnname2"})
orRecord.Field(record, "fieldname")
. As it stands though, your question is far too general to answer effectively. Could you specify more detail about the query you've built and a specific function you'd like to implement? – greggyb