Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

custom column in edit query

Hi

 

Example:

 

   table1                                                                    table 2

resource id  resource name                 off shore DM id   Onsite DM id

123                 abc                                    123 

456                 xyz                                                             456

 

Above two different tables table1 and table 2 combine with common columns like

table1.resourceid= table2.offshoreDM id

table1.resourceid= table2.onsiteDM id

 

How to write custom columns in edit query display the Off shore DM name and onsite DM name based on resource name.

 

Thanks

kunuthu

 

 

10 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    ImkeFmight be able to help with this. Fairly difficult to do with M in working with multple queries. I assume that you want to add the resource name to the 2nd query.

     

    This would be very easy to do in DAX if it is OK to do it there using something like LOOKUPVALUE.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Greg,

       

      can you please provide DAX expression, above example

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi

         

        From single excel sheets source.

         

        sheet 1                                                                                              sheet 2

        projId   projname  offshoreDM id  onsiteDM id                             resId   resname

        111          abc        789                  799                                          799     Buddy

        222          xyz         888                 999                                          999    Johny

         

        Above examples, in a company resourceid same as DMis . so we need to display OffshoreDM name and OnsiteDMname in same table. How to write DAX or M query langauage expressions?