Forum Discussion

koorosh's avatar
koorosh
Post Partisan
4 years ago

table expression

Hi, I expected Customer and Purchase Date header for the following output. why I got Sales_Customer and Sales_Purchase Date?

 

 

7 Replies

  • mwegener's avatar
    mwegener
    Most Valuable Professional

    Hi koorosh ,

     

    It seems that the DAX function GROUP BY puts the table name as prefix in front of the corresponding GROUP BY columns.

     

     

  • koorosh's avatar
    koorosh
    Post Partisan

    Hi, Since the sales table has "customer" and "purchase date" columns, so the Lastpurchase variable that is the outcome of GroupBY should have common join columns to get correct output from NATURALLEFTJOIN as you see in the following!

     

     

    • v-kelly-msft's avatar
      v-kelly-msft
      Community Support

      Hi koorosh ,

       

      Could you pls provide some dummy data with expected output for test?

       

      Best Regards,
      Kelly

      Did I answer your question? Mark my reply as a solution!