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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
malpani
Helper I
Helper I

Need help with Power BI matrix visual

Hi, 

I am pulling data from JIRA and finally I shaped it to following format.

This is dummy data - 

Parent-KeyParent-TitleProduct Parent-tatusChild-KeyChild-TitleChild-Status
CNSRDP-36TestMy test ModelDEVELOPMENT COMPLETESDSP-12Test UnassignedSAFE COMPLETED
CNSRDP-36TestMy test ModelDEVELOPMENT COMPLETESDSP-80test-req-06-16-1SAFE COMPLETED

 

As shown in table I have a parent key CNSRDP-36 which is implemented by two child keys - SDSP-12 and SDSP-80.

When I am using Matrix visual, by default I want user to see Parent key, Parent Title and Status and keep child items hidden/grouped under parent key.
And if someone is interested, he can expand to see child key, child title status. 

 

I am using Matrix visual to do this but it is not presenting right view. 

e.g. when I group at Parent key it additionally shows Child rows and that too only for one child item.

malpani_0-1696852371409.png

And when I expand - it doesn't show anything in the CNSREQ-36 rows and only shows expanded rows.

Is there a way that it shows Parent Summary/Title and Parent Status against Parent Key. dedicated child rows with its key, title and status. ?

malpani_1-1696852446787.png

 

If it not possible to use default Matrix visual, is there any other custom visual available ?

regards

 

 

 

 

 

 


 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @malpani ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create measures. 

Title = 
var _a=CALCULATE(MAX('Table'[Child-Title]),FILTER(ALLSELECTED('Table'),'Table'[Child-Key]=MAX('Table'[Child-Key])))
return SWITCH(TRUE(),
ISINSCOPE('Table'[Child-Key]),_a,
ISINSCOPE('Table'[Parent-Key]),MAX('Table'[Parent-Title]),BLANK())
Status = 
var _a=CALCULATE(MAX('Table'[Child-Status]),FILTER(ALLSELECTED('Table'),'Table'[Child-Key]=MAX('Table'[Child-Key])))
return SWITCH(TRUE(),
ISINSCOPE('Table'[Child-Key]),_a,
ISINSCOPE('Table'[Parent-Key]),MAX('Table'[Parent-status]),BLANK())

(3) Then the result is as follows.

vtangjiemsft_0-1696924052155.pngvtangjiemsft_1-1696924065932.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

3 REPLIES 3
Anonymous
Not applicable

Hi @malpani ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create measures. 

Title = 
var _a=CALCULATE(MAX('Table'[Child-Title]),FILTER(ALLSELECTED('Table'),'Table'[Child-Key]=MAX('Table'[Child-Key])))
return SWITCH(TRUE(),
ISINSCOPE('Table'[Child-Key]),_a,
ISINSCOPE('Table'[Parent-Key]),MAX('Table'[Parent-Title]),BLANK())
Status = 
var _a=CALCULATE(MAX('Table'[Child-Status]),FILTER(ALLSELECTED('Table'),'Table'[Child-Key]=MAX('Table'[Child-Key])))
return SWITCH(TRUE(),
ISINSCOPE('Table'[Child-Key]),_a,
ISINSCOPE('Table'[Parent-Key]),MAX('Table'[Parent-status]),BLANK())

(3) Then the result is as follows.

vtangjiemsft_0-1696924052155.pngvtangjiemsft_1-1696924065932.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

@Anonymous 
Thank you so much for your support.
I have one more question - 
There are more columns in dataset but those are applicable to only Parent and not to Child e.g. 'Parent_Origin'. So, those should be visible only for Parent Key and not for Child Key.
I achieved this by adding one blank column for 'Child_Origin'. in Power query and then created similar Measure for Origin as well.
Is it possible to do this without having a blank column ?

Anonymous
Not applicable

Hi @malpani ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1697007643982.png

(2) We can create a measure. 

Origin = 
SWITCH(TRUE(),
ISINSCOPE('Table'[Child-Key]),BLANK(),
ISINSCOPE('Table'[Parent-Key]),MAX('Table'[Parent_Origin]),BLANK())

(3) Then the result is as follows.

vtangjiemsft_1-1697007685071.png

vtangjiemsft_2-1697007699265.png

Best Regards,

Neeko Tang

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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