Forum Discussion
Fill in data in a column for same duplicate value from other column
- 6 years ago
New column in table 1
Support Group = minx(FILTER(Table2,Table2[Hostname]=Table1[Hostname] && Table1[IP Address]=Table2[IP Address]),Table2[Support Group])
Hello @amitchandak ,
Shared you moments ago a test .pbix on OneDrive. Tried to reproduce the data set I have in my original tables - while "playing" with these test tables, I was surprised to notice some differences in the report compared with original data set: can't see listed all the IPs (although I have support group for all IPs) and I don't have blanks for duplicate IPs/hostnames.
Wonder whether I should do some cleanup in my source table with support groups, like creating a 3rd table with 2 columns from that table - list only entries with IPs and support groups. I simply don't get it why I get those blanks for duplicate IPs using original data sources.
Cheers
Katek
Hello,
Thought I might have done a typo somewhere in those formulas, so went back to my original data sources and did the following:
1. create new calculated column (repeated this in both table1 and table2)
2. pasted the DAX formula:
Support Group = minx(filter(table2,table2[Ip Address]=earlier(table2[Ip Address] && not(isblank(table2[Support
- amitchandak6 years ago
Super User
New column in table 1
Support Group = minx(FILTER(Table2,Table2[Hostname]=Table1[Hostname] && Table1[IP Address]=Table2[IP Address]),Table2[Support Group]) - Katek106 years agoFrequent Visitor
Many thanks indeed Amit!
It works!!! I get the expected outcome, no blanks for duplicated IPs, support groups are duplicated as many times as IPs are. Really appreciate all your time spent on this and your support!
Cheers,
K