Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
masplin
Impactful Individual
Impactful Individual

Using Matrix with odd rows structure

I have a client requesting a table that looks like this.  The problem is the heirachy they want is based on 3 different fields,

  1. Job Type: Newin, removal etc
  2. Major project: Y/N 
  3. Customer name: QEF is one very large contract that is also a MP

 

Capture.PNG

If I put Major project then Job Type then Customer name on the rows of the matrix I can use the + button to hide all the cusotmers in the top part (the are MP=N).  I coudl collpase all of the MP=Y section, but then cant see the one row for QEF. Also The MP orange number needs to be all jobs that are MP except the QEF one.

 

So the question is whether this s possible in power BI?  Do I create a column and classify each line to where it fits on the table?  

 

Thanks ofr any advice

Mike

1 ACCEPTED SOLUTION

Hi @masplin 

You could use "group and bins", it can partly achieve your requirements.

Capture6.JPGCapture8.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @masplin 

Sorry, i'm not clear about your table structure.

Do you have the table as below

Capture4.JPG

Then want the columns to show on rows as the right one.

level 1, level 2, level 3
 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Maggie

 

Attached is an example of my data (its actually made up of related tables)

 

Data 

So a normal matrix would look like this

Capture.PNG

However the customer want the "Y" bit of the table to be split between one speciifc project for cusotmer X and the rest instead of being split by "Group" as for the "N" bit of the table.

 

One way of doing this is to create a new column in my datatable like this and then use this field instead of the [Major project] field in my matrix.  

 

Daily = IF('ASC'[Order Number]="1431027","QEF",IF('ASC'[Major Project]="Y","Other MP","Net Dom"))

This sort of works, but wondered if there was a more flexible way to show subsets of data. For example if we put "Customer" in the matrix we can either have the total or expand it to show the number for each cusotmer.  What if I wanted to show subtotals for all the cusotmers begining with "A" and another total for the rest.  I could create a calcuated column as above, but is that the only way or can it be done with DAX?

 

Thanks

Mike 

Hi @masplin 

You could use "group and bins", it can partly achieve your requirements.

Capture6.JPGCapture8.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ah brilliant just what i needed.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.