Forum Discussion

Alexp81's avatar
Alexp81
New Member
3 years ago
Solved

Dax Calulation Help

Wondering if anyone has doen this before trying to do in report vs in sql where sales people share the sale if there is a second salesperon presant.   Sales Tables Salesperson ID, salesvalue, se...
  • AlanFredes's avatar
    3 years ago

    Hi Alex,

     

    I have worked with sales data like this and what did was to un-pivot the data either in SQL or Power BI Power Query to get the following structure. This also allows you to quickly toggle between what they have as a Primary or Secondary assignment.

    IdAmountPrimary/Secondary
    A500P
    B200P
    A200P
    B300P
    B500S
    C300S

     

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