Forum Discussion
Relationship Query
- Anonymous9 years ago
A really quick solution would be a calculated column in your computer table:
Subnet = LEFT([IP], 5) & ".0.0/24")
Now go to your table relationships tab and link your computers to your locations via the subnet.
Now add the matrix visual to your reports and you'll see if you list the computers, then if you bring in your Office field from your office list, it will correctly show.
Hi smoupre
Thanks for your reply.
Example:
| Office | Subnet |
| NSW | 10.10.0.0/24 |
| QLD | 10.20.0.0/24 |
| VIC | 10.30.0.0/24 |
| Description | Serial | IP |
| Desktop | 1234N123 | 10.20.0.50 |
| Laptop | 2345M678 | 10.10.0.108 |
| Server | 3456O789 | 10.30.0.167 |
So what I would like to achieve as an end result is link both tables in 2 different CSV files together and have Power BI show the following table based by the IP in the second table and automatically populate the Office from the first table. Hope i'm making sense :)
| Description | Serial | IP | Office |
| Desktop | 1234N123 | 10.20.0.50 | |
| Laptop | 2345M678 | 10.10.0.108 | |
| Server | 3456O789 | 10.30.0.167 |
A really quick solution would be a calculated column in your computer table:
Subnet = LEFT([IP], 5) & ".0.0/24")
Now go to your table relationships tab and link your computers to your locations via the subnet.
Now add the matrix visual to your reports and you'll see if you list the computers, then if you bring in your Office field from your office list, it will correctly show.