@chad.sharpe,
Looking back, I can see how my solution post may not have been clear, since I kept the results in Power Query and didn’t pull them out into a separate visual. I’ve done that here, and unless I misinterpreted the problem I think this gives you just what you’re looking for – the RAP Mac addresses for devices with only one device type equal to Cisco Systems:
And here’s the M code I used to transform the Shelly table to get to this result:
let
Source = Csv.Document(File.Contents("C:\Users\brjul\Desktop\Shelly - (Hostname Mapping) Active Hosts Last Two Months (2).csv"),[Delimiter=",", Columns=6, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
#"Grouped Rows" = Table.Group(#"Promoted Headers", {"RAP Mac", "Device Tyep"}, {{"AllData", each _, type table [#"RAP - (ACFID)"=nullable text, RAP Mac=nullable text, IP=nullable text, Device Tyep=nullable text, Host Mac=nullable text, #"Device Name (Consolidated)"=nullable text]}, {"Device Type Count", each Table.RowCount(_), Int64.Type}}),
#"Expanded AllData" = Table.ExpandTableColumn(#"Grouped Rows", "AllData", {"RAP - (ACFID)", "IP", "Host Mac", "Device Name (Consolidated)"}, {"RAP - (ACFID)", "IP", "Host Mac", "Device Name (Consolidated)"}),
#"Filtered Rows" = Table.SelectRows(#"Expanded AllData", each ([Device Tyep] = "Cisco Systems, Inc") and ([Device Type Count] = 1)),
#"Reordered Columns" = Table.ReorderColumns(#"Filtered Rows",{"Device Type Count", "RAP Mac", "Device Tyep", "RAP - (ACFID)", "IP", "Host Mac", "Device Name (Consolidated)"}),
#"Renamed Columns" = Table.RenameColumns(#"Reordered Columns",{{"Device Tyep", "Device Type"}})
in
#"Renamed Columns"
If that isn’t what you need, please clarify and I’ll be glad to revise the solution.
Thanks.
– Brian
eDNA Forum RAP EDNA Solution.pbix (247.6 KB)