Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi ,
I have 2 related tables (*-1):
Table A
Host | Device | IP |
Host1 | vmk0 | IP1 |
Host2 | vmk0 | IP2 |
Host3 | vmk0 | IP3 |
Host4 | vmk0 | IP4 |
Host5 | vmk0 | IP5 |
Host6 | vmk0 | IP6 |
Host7 | vmk0 | IP7 |
Host8 | vmk0 | IP8 |
Host9 | vmk0 | IP9 |
Host1 | vmk1 | IP10 |
Host2 | vmk1 | IP11 |
Host3 | vmk1 | IP12 |
Host4 | vmk1 | IP13 |
Host5 | vmk1 | IP14 |
Host6 | vmk1 | IP15 |
Host7 | vmk1 | IP16 |
Host8 | vmk1 | IP17 |
Host9 | vmk1 | IP18 |
Host10 | vmk2 | IP19 |
Host11 | vmk3 | IP20 |
Host12 | vmk4 | IP21 |
Host13 | vmk5 | IP22 |
Host14 | vmk6 | IP23 |
Table B
Host |
Host1 |
Host2 |
Host3 |
Host4 |
Host5 |
Host6 |
Host7 |
Host8 |
Host9 |
I would like to add the table B two columns :
Table B (result)
Host | IP VMK0 | IP VMK1 |
Host1 | IP1 | IP10 |
Host2 | IP2 | IP11 |
Host3 | IP3 | IP12 |
Host4 | IP4 | IP13 |
Host5 | IP5 | IP14 |
Host6 | IP6 | IP15 |
Host7 | IP7 | IP16 |
Host8 | IP8 | IP17 |
Host9 | IP9 | IP18 |
IP VMK0 = IF(TableA[Device] = "vmk0", TableA[IP])
IP VMK1 = IF(TableA[Device] = "vmk1", TableA[IP])
Thank you in advance for your help.
Tg
Solved! Go to Solution.
Hi @vnqt ,
If you need a calculated column, here is one of the ways:
IP VMK0 =
VAR IPVMK = "vmk0"
VAR t = FILTER ( TableA, TableA[Device] = IPVMK && TableA[Host] = TableB[Host] )
RETURN
MAXX ( t, TableA[IP] )
IP VMK1 =
VAR IPVMK = "vmk1"
VAR t = FILTER ( TableA, TableA[Device] = IPVMK && TableA[Host] = TableB[Host] )
RETURN
MAXX ( t, TableA[IP] )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Or, if it is to be a measure:
IP VMK0 measure =
VAR IPVMK = "vmk0"
VAR t = FILTER ( TableA, TableA[Device] = IPVMK && TableA[Host] = SELECTEDVALUE(TableB[Host]) )
RETURN
MAXX ( t, TableA[IP] )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi @vnqt ,
If you need a calculated column, here is one of the ways:
IP VMK0 =
VAR IPVMK = "vmk0"
VAR t = FILTER ( TableA, TableA[Device] = IPVMK && TableA[Host] = TableB[Host] )
RETURN
MAXX ( t, TableA[IP] )
IP VMK1 =
VAR IPVMK = "vmk1"
VAR t = FILTER ( TableA, TableA[Device] = IPVMK && TableA[Host] = TableB[Host] )
RETURN
MAXX ( t, TableA[IP] )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Thank you for your prompt reply.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |