Hi,
I have 2 tables. A fact table (table 1) and a table (table 2) that one have one column which contains all the column names from the fact table.
table 1:
<tbody>
</tbody>
table 2:
<tbody>
</tbody>
What I would like to do is as following. Creating a new column in table 2 that calculated the number of blank rows in table 1 for the column specified in the first column in table 2.
Table 2 after calc:
<tbody>
</tbody>
I can do it in Excel with the following formula: {=COUNTBLANK(INDEX(Table1;;MATCH([@[COLUMN NAME]];Table1[#Headers];0)))}
Any ideas on how to do so?
Thanks in advanced
Br
Vistrup
I have 2 tables. A fact table (table 1) and a table (table 2) that one have one column which contains all the column names from the fact table.
table 1:
Product ID | Product Name | Category |
12 | Bike 12 inc | Bike |
35 | Nut | Nuts and bolts |
40 | Bike | |
11 | Bolt |
<tbody>
</tbody>
table 2:
Column name |
Product ID |
Product Name |
Category |
<tbody>
</tbody>
What I would like to do is as following. Creating a new column in table 2 that calculated the number of blank rows in table 1 for the column specified in the first column in table 2.
Table 2 after calc:
Column name | Number of blanks |
Product ID | 0 |
Product Name | 1 |
Category | 1 |
<tbody>
</tbody>
I can do it in Excel with the following formula: {=COUNTBLANK(INDEX(Table1;;MATCH([@[COLUMN NAME]];Table1[#Headers];0)))}
Any ideas on how to do so?
Thanks in advanced
Br
Vistrup