Forum Discussion

bvandyke's avatar
bvandyke
New Member
7 months ago
Solved

Issue with displaying multiple column values in a Matrix

Trying to replicate a pivot table from excel in Power BI.  Shouldn't be difficult I thought, even though I'm pretty new to Power BI.

 

Issue is in the Column piece.  I have two column that need to have their values shown but the Matrix is only showing one of them, the first in the list.  Sample data is below. 

My matrix is defined as :

   Rows: CostCenter, CCName, Employee, EmployeeName

   Columns: SBUOverhead, PorjPropOH

   Value: Sum of MTD_Hours

 

So, if SBUOverhead is the first Column listed the matrix is showing me column header SBU  and Overhead with 187 under SBU (which is correct) but it is not showing me column headers Project, Proposal, Overhead that go with ProjPropOH field and their totals.  If I take out SBUOverhead and put in ProjPropOH (or rearrange them so it is 1st) - I get the three headers and totals where approriate.  I want both sets of headers to display.

 

Any help, pointer, where to look, etc. is greatly appreciated.

 

CostCenterCCNameEmployeeEmployeeNameMTD_HoursSBUOverheadProjPropOH
13553Marketing - Test11111John Doe SBUOverhead
13553Marketing - Test11111John Doe7SBUOverhead
13553Marketing - Test11111John Doe30SBUOverhead
13553Marketing - Test11111John Doe SBUOverhead
13553Marketing - Test11111John Doe SBUOverhead
13553Marketing - Test11111John Doe100SBUOverhead
13553Marketing - Test11111John Doe18SBUOverhead
13553Marketing - Test11111John Doe OverheadOverhead
13553Marketing - Test11111John Doe OverheadOverhead
dd13553Marketing - Test11111John Doe32SBUProject
13553Marketing - Test11111John Doe SBUProject
13553Marketing - Test11111John Doe SBUProject
13553Marketing - Test11111John Doe155SBUProposal
  • You could try merging the two columns into one so that the matrix isn't handling a nested structure.

    CombinedColumn = 
    [SBUOverhead] & " | " & [ProjPropOH]

     

    This can be a calculated column, so doesn't affect anything else.

     

  • Sweet - just check if you would need either of the individual columns or if the merged one alone would be sufficient so you don't cause yourself pain later on.

     

    If you don't need anything else could you mark my response as an acceptable solution so other people don't spend time responding?

4 Replies

  • You could try merging the two columns into one so that the matrix isn't handling a nested structure.

    CombinedColumn = 
    [SBUOverhead] & " | " & [ProjPropOH]

     

    This can be a calculated column, so doesn't affect anything else.

     

    • bvandyke's avatar
      bvandyke
      New Member

      Thanks.  This gives me an idea to combine them prior to importing so I can make a set of unique combinations.

      • JamieHolding's avatar
        JamieHolding
        Resolver I

        Sweet - just check if you would need either of the individual columns or if the merged one alone would be sufficient so you don't cause yourself pain later on.

         

        If you don't need anything else could you mark my response as an acceptable solution so other people don't spend time responding?