Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
teaguejs
Helper II
Helper II

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".

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@teaguejs 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 YouTube.gif 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.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@teaguejs weird, are you using DQ?

 

Follow us on LinkedIn and YouTube.gif 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.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

So the CMDB_Active table is a Power BI dataset that was shared with me which is owned by a separate person

parry2k
Super User
Super User

@teaguejs not sure why, did it work before?

 

Follow us on LinkedIn and YouTube.gif 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.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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
Super User

@teaguejs 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 YouTube.gif 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.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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>

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.