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
nanci
Helper II
Helper II

Matrix visual, different number of levels

I have the following data from which I build a Matrix visual with drill-down capability.

Screen Shot 2019-12-20 at 3.23.44 PM.png

In the case of Project B, the values for Subtask and Task are the same, so for this case I have to show only one in the matrix. Something like 'merge' the 2 levels of Subtask and Task when their values are the same because right now the matrix is showing 'task 2' twice. How can I do this?

 

1 ACCEPTED SOLUTION

Hi @nanci 

 

if I understand you correctly, you want the following result

Hierachy.png

You may download my PBIX file from here.
Hope this helps.

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

4 REPLIES 4

Hi @nanci ,

 

try this Measure

 

 

Hours Hierarchie =
IF (
    ISFILTERED ( 'Table'[Task] ) = FALSE ()
        || MIN ( 'Table'[Task] ) <> MIN ( 'Table'[Subtask] ),
    SUM ( 'Table'[Hours] ),
    BLANK ()
)

 

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

 

 

@ImkeF : Thanks for teaching me that. 🙂

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Thanks for your reply @mwegener . Can you explain how should I use this measure in the matrix visual?

Hi @nanci,

 

has your problem been solved?

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi @nanci 

 

if I understand you correctly, you want the following result

Hierachy.png

You may download my PBIX file from here.
Hope this helps.

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.