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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Dynamics CRM Parent-child account searching

Hello,

 

Dynamics CRM has account parent-child relationships within the same entity parentaccountid and accountid fields. I am attempting to create a slicer to search for accounts and to show all related opportunities for the parent-children of those accounts. So far I have been able to show all children records as the relationship between opportunity/accountid and accountid exists, but I am not able to see the parent opportunities as I am unable to create a second relationship to the account table for parentaccountid and opportunity/accountid. Same goes for contacts or any other records that is attached to an account. Has anyone conquered this task?

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may add a separate table for Slicer, apply virtual relationship in DAX measure and then take advantage of Visual level filters.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Reading more of this - if I was to create an inactive physical relationship to my entities to the parentaccount field, and use the following, I think it may work. just confused here as to what goes were in this code. I dont need sums or values, just need the relationship

 

EVALUATE
CALCULATETABLE (
    SUMMARIZECOLUMNS (
        Header[channelKey],
        "Sales", SUM ( Detail[SalesAmount] )
    ),
    USERELATIONSHIP ( Detail[SalesKey], Header[SalesKey] )
)
Anonymous
Not applicable

this is my inactive relationshiprelate.PNG

Anonymous
Not applicable

I have the relationship in the datamodel for Parent Child, I have two slicers, one from the parent account and one for the account (shild). what I am not getting is data from the parent as the parent field is not mapped to any of the related entities. I can only map one relationship from opps to account and that has to be to the accountid field. so how do I get records related to the parentid selected in the first slicer includedtemplate1.PNGshows related accounts.PNGdoesnt show parent account info.PNGdata.PNGaccountid relationships.PNG

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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