-
• #2177
I know because Meat Eaters go to the Butchers, not the Baker or Candlestick Maker. They're covered by a different process which was done correctly.
-
• #2178
Meat Eaters go to the Butchers
Is that reflected in your data anywhere?
-
• #2179
As is often the way talking through it has already helped a bit.
But the closest I've got is pivot group by UID then columns for process On and Off, with a true/false for when the sum of process matches to.
-
• #2180
Is it something like:
IF Role = "Butcher"|"Candlestickmaker"
AND
IF UID = "RAB123"
THEN
Process = "on"That's the logic isn't it?
so you could create a concatenated UIDROLEPROCESS (and that is unique) spot when it ends off instead of on (or vice versa)
RAB123BUTCHERON
RAB123BUTCHEROFF?
-
• #2181
RAB123BUTCHERON
RAB123BUTCHEROFF
I guess the question is in a list of 30k how do I find the this mismatching pair?
Remove the 100% matches followed by some sort of fuzzy duplicate matching?
-
• #2182
if you add a column which does this concatenation, you can then :
create a lookup table of all the wrong concatenations and
then do a vlookup in a new column in the original table and then instead of the match being brought back, have it so 1 is for a match and then filter the table for 1
or
use the filter function to look at the original table and then filter the concatenation column for only the wrong concatenationsor do it in powerquery similarly where you do you an antijoin
-
• #2184
so
create your column in your original data so you have a new field
that has this
RAB123BUTCHERON
RAB123BUTCHEROFFthen make your data source a table (Ctrl+T)
then use the filter table to filter the table where concatenation is in wrong concatenation list. -
• #2185
I'm auditioning for new jobs if anyone wants to employ me.
-
• #2186
Fancy being a consultant?
-
• #2187
Thanks for the tips. I've done a slightly shonky iterative version of this.
Going try and redo it in power query in a tidier format as the ultimate aim is a list with ancillary fields to be uploaded to a workaround tool. And obvs only 1/10 of the fields share the same naming convention 🫠
-
• #2188
Will you pay me >53k a year?
-
• #2189
do you mean the fields aren't named the same thing? or do you mean the contents of the field?
-
• #2190
Yeah not named the same thing. As in there are a tonne of fields so 'Location' in one place is 'LCTN' in another and 'XXX_location' in another.
Not the end of the world and where PQ is good I'm discovering as you can sort it out upfront, but annoying as you can't just lookup without cross checking fields are correct.
-
• #2191
Are you pulling in from a folder location lots of files?
Because you can create a schema that you want (location =locationnvariants) and then apply that.
Or is it in a file already and there are lots of fields called location? If it’s the latter you could make a single column of all the location variants. -
• #2192
No. It should be a one time fix.
I'm deriving my data off one epic xls that someone else has built which is a weekly verified/corrected version of what should be the golden source. But I will want to run a check against the golden source before I send the data for the fix. Each of those have some fields with slightly different naming conventions.
I tried to set it up from the share point folder to capture any updates, but just kept getting fails. So just used the epic xls. and will double check how to ensure I get updates.
-
• #2193
I am struggling to think how to solve this without saying “nuke it from space”
-
• #2194
Anyway to get a folder name from a string of data like this?
Z:_PROJECTS\client\project\03_3D\01_Scenes\WIP
Z:_PROJECTS\client\project\03_3D\01_Scenes\
Z:_PROJECTS\client\project\03_3D\02_Xrefbasically I want 'client' and 'project' as fields, they may have a variable number of subfolders after them. I (kind of) know about LEN, but the paths vary in length beyond the bit that I want to extract, so not sure if that'll work very well.
-
• #2195
Find, count and mid will help you isolate the bits you want
-
• #2196
does it always go
projects\client\project?textafter function and textbefore function are your friends here.
-
• #2197
Nice one, will check those out
-
• #2198
I think those have been depreciated by the looks of it.
-
• #2199
They are new so may not be on every Excel. Textsplit would be the other one of use.
Otherwise try using SEARCH to get where each of the \ are and combine that with MID
-
• #2200
yeah MID and FIND are getting me where I need I think. How do you find the 2nd or 3rd occurrence of a character with FIND?
edit: nevermind, think I'm nearly there
Yeah it's difficult to solve without seeing the actual data. Sounds like what I have above would work, you just need to check the Product column rather than the Role column.