Forum Discussion

Dicken's avatar
Dicken
Icon for Post Prodigy rankPost Prodigy
1 year ago
Solved

Power Query Structured lookup

Hi,  Can someone help or at least point me in direction of  information on a structured lookup;   example    position operator   table  { 0 } ,  so the starting point is  [ A = 1 = [A = 2]] = a...
  • ZhangKun's avatar
    ZhangKun
    1 year ago

    There are some more examples that may confuse you. If you can understand them, then you understand "field access" (and projection) and the keyword each.

     

    // Example 1
    [A = 1, B = 2][[A], [C]]?
    
    // Example 2
    #table({"A", "B"}, {{1, 2}, {1, 3}})[[D]]?
    
    // Example 3
    let 
        _ = [
            A = 1, 
            B = 2
        ]
    in 
        [A]
    
    // Example 4
    let 
        _ = [
            A = 1, 
            B = 2
        ]
    in 
        _[[A], [C]]?