Forum Discussion

Freemanchen's avatar
Freemanchen
Frequent Visitor
4 years ago
Solved

Sum multiple columns values based on filter

Hi,  Here's the example of the data tables I have  SolutionMap:                                    Performance pivot table: |Solutionid(distinct) | Workload                      |Partner id     | ...
  • serpiva64's avatar
    4 years ago

    Hi,

    to obtain something like this

    the easiest solution is to unpivot column in performance table 
    - select your SolutionID columns and then unpivot

    - rename the column you obtain conveniently and load.

     

    You can obtain the same thing in DAX by creating a new table

    Table2 =
    UNION (
    SELECTCOLUMNS (
    'Table (3)',
    "PartnerID", 'Table (3)'[PartnerID],
    "SolutionID", "1",
     
    "Revenue", 'Table (3)'[1]
    ),
    SELECTCOLUMNS (
    'Table (3)',
    "PartnerID", 'Table (3)'[PartnerID],
    "SolutionID", "2",
     
    "Revenue", 'Table (3)'[2]
    )
    )

     

     

     

    If this post is useful to help you to solve your issue consider giving the post a thumbs up 

     and accepting it as a solution !

     

     

     

  • Freemanchen's avatar
    Freemanchen
    4 years ago

    thank you that's really help, is there anyway I could apply a workload filter on this too?

  • serpiva64's avatar
    serpiva64
    4 years ago

    You have only to create a relationship between your two table

    then add Workload as a slicer and now you can slice and dice as you want

     

    If this post is useful to help you to solve your issue consider giving the post a thumbs up 

     and accepting it as a solution !