Forum Discussion

AA622's avatar
AA622
Helper II
4 years ago
Solved

Combine 2 values within the same column

Hello   I constructed a Sales Goal dashboard for the Sales team. We have a column that lists out the different Goal Types such as Total Sales Hospital Sales Office Sales Other Sales   This mo...
  • speedramps's avatar
    4 years ago

    It is bad practice is to use "implicit" measure.

    Implicit measures are when you drag column names from the table to the report canvas.

     

    It is best pratice to use "explicit" DAX measures ...

     

    Total Sales    = SUM(filename["TotalSales])

    Hospital Sales  = SUM(filename[HospitalSales])

    Office Sales  = SUM(filename[OfficeSales])

    Other Sales  = SUM(filename[OtherSales])

     

    These are much easier to change when the goal post move ....

     

    NewGoal = [Total Sales] + [Other Sales]

     

     I helped you, now plwase help me with kudos.

    Click the thumbs up and accept as solution button. Thanks 😎

  • v-kkf-msft's avatar
    4 years ago

    Hi AA622 ,

     

    Please create the new table and relationship.

     

    Types = 
        {
            ("Hospital Sales", "Hospital Sales"),
            ("Office Sales", "Office Sales"),
            ("Combine Sales", "Total Sales"),
            ("Combine Sales", "Other Sales")
        }

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.