Forum Discussion

celldweller's avatar
celldweller
Frequent Visitor
4 years ago
Solved

Extract values from an array

Hi,   I got some data in a column imported from postgresql which looks like that: [{"key": "mitarbeiter_faktor", "value": "1", "encrypted": false}, {"key": "mitarbeiter_faktor_technik", "value":...
  • edhans's avatar
    edhans
    4 years ago

    Yeah, that is just a mess. 😁

    However, still I think pretty simple. If your data is consistent, then you want to use Text.BeforeDelimiters, .BetweenDelimiters, and .AfterDelimiters.

    FOr example:

    If you add this function, it will get the get the value after Key:

    Text.BetweenDelimiters([List], Character.FromNumber(34), Character.FromNumber(34), 2, 0)

    Just remember that Power Query starts at 0, so 0 is the first delimiter, and 1 is the second, and so on.