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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
die_kruzen
Frequent Visitor

Remove Duplicating entries in Matix

Hello All. I have a parent/child relationship I am to display in a matrix. Is there a way to make it so 'This is the title from the parent' just appears once instead of for each child record?

 

Thank you in advance

 

REQID This is the title from the parent 
5522This is the title from the parent 
 34This is the title from the parent 
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @die_kruzen 
Yes, you can manipulate what to show by hierarchy level, using the ISINSCOPE function:
for example :

title_ = if(ISINSCOPE('Table'[child]),"",max('Table'[title]))
The result :
Ritaf1983_0-1707796893483.png

pbix is attached

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

View solution in original post

4 REPLIES 4
die_kruzen
Frequent Visitor

@Ritaf1983 @amitchandak - thank you both for the info!! I wasn't aware of the ISINSCOPE....until now.

 

 

@die_kruzen 

 Happy to help😊

Ritaf1983
Super User
Super User

Hi @die_kruzen 
Yes, you can manipulate what to show by hierarchy level, using the ISINSCOPE function:
for example :

title_ = if(ISINSCOPE('Table'[child]),"",max('Table'[title]))
The result :
Ritaf1983_0-1707796893483.png

pbix is attached

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

amitchandak
Super User
Super User

@die_kruzen , Assume the name of the parent column is parent and child is child , then have a measure like

 

New measure=

Switch(True(),

isinscope(Table[Child]) , blank(),

isinscope(Table[Parent]) , Max(Table[Text]) ,

Max(Table[Text])

)

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors