Forum Discussion
add column from another table by using filter
- 6 years ago
Hi , Anonymous
It is suggest to move the column 'AverageFlow' in table1 to table2 rather than move the column 'Duration_min' in table2 to table1 due to the relationship between table1 and table2(one-to-many rather than many-to_one ).
You can create caluculated column as below :
Average Flow = LOOKUPVALUE('Table 1'[AverageFlow],'Table 1'[bay_id],'Table 2'[bay_id])total usage of water = 'Table 2'[Duration_Min]*'Table 2'[Average Flow]The result will show as below:
You also can create measure as below:
total usage of water = SELECTEDVALUE('Table 1'[AverageFlow])*SELECTEDVALUE('Table 2'[Duration_Min])You can also hide the columns you don’t need by reducing the row width manually in table visual.
Best Regards,
Community Support Team _ Eason
Hi , Anonymous
It is suggest to move the column 'AverageFlow' in table1 to table2 rather than move the column 'Duration_min' in table2 to table1 due to the relationship between table1 and table2(one-to-many rather than many-to_one ).
You can create caluculated column as below :
Average Flow = LOOKUPVALUE('Table 1'[AverageFlow],'Table 1'[bay_id],'Table 2'[bay_id])total usage of water = 'Table 2'[Duration_Min]*'Table 2'[Average Flow]The result will show as below:
You also can create measure as below:
total usage of water = SELECTEDVALUE('Table 1'[AverageFlow])*SELECTEDVALUE('Table 2'[Duration_Min])You can also hide the columns you don’t need by reducing the row width manually in table visual.
Best Regards,
Community Support Team _ Eason