Forum Discussion
Adding a Column from a different table to a calculated table
Hi,
I have created a couple calculated tables using the following calculation:
Missing from CMDB =
EXCEPT( VALUES(it_current[ip_address_rapid7]), VALUES(CMDB_Active[ip_address]))
AND
Missing From Rapid7 =
EXCEPT( VALUES(CMDB_Active[ip_address]), VALUES(it_current[ip_address_rapid7]))
What I would like to do is add an additional column from a separate table to each of those 2 calculated tables. I would like to add the "host_name" column from the table "CMDB_Active" to the newly caclulated table called "Missing From Rapid7".
And I would like to add the "host_name" column from the table "it_current" to the newly calculated table called "Missing from CMDB".
Anonymous this is what you need:
Missing From CMDB = SELECTCOLUMNS ( CALCULATETABLE ( IT_Current, EXCEPT ( VALUES ( IT_Current[IP_ADDRESS_RAPID7] ), VALUES ( CMDB_Active[IP_Address] ) ) ), "IP_Address_Rapid7", IT_Current[IP_ADDRESS_RAPID7], "Host_Name", IT_Current[Host_Name] )the same will apply to the 2nd table.
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
6 Replies
- parry2k
Super User
Anonymous this is what you need:
Missing From CMDB = SELECTCOLUMNS ( CALCULATETABLE ( IT_Current, EXCEPT ( VALUES ( IT_Current[IP_ADDRESS_RAPID7] ), VALUES ( CMDB_Active[IP_Address] ) ) ), "IP_Address_Rapid7", IT_Current[IP_ADDRESS_RAPID7], "Host_Name", IT_Current[Host_Name] )the same will apply to the 2nd table.
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
Thanks so much for the help!
It looks like it worked for "Assets in CMDB Missing from Rapid7" table!It did come back with this error on the Missing From CMDB table:
<ccon>The resultset of a query to external data source has exceeded the maximum allowed size of '1000000' rows.</ccon>
- parry2k
Super User
Anonymous not sure why, did it work before?
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
It worked before when it was just:
Missing from CMDB =
EXCEPT( VALUES(it_current[ip_address_rapid7]), VALUES(CMDB_Active[ip_address]))
- parry2k
Super User
Anonymous weird, are you using DQ?
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
So the CMDB_Active table is a Power BI dataset that was shared with me which is owned by a separate person