cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ruksuro Member
Member

Many to Many Measure

Hi Community,

 

I have created a many-many structure in desktop by creating a bridging table which contains only the distinct values of the joining column.

 

I would like to create a measure which does the equivalent of SUMPRODUCT, taking each line in Table 1 and mutliplying by the related value in Table 2. Table 2 will be filtered on the dashboard to resolve the many-many issue.

 

There are over 50 "types" in each table so it must remain a many-many structure (I don't want 50x tables floating about).

 

Any help appreciated, thanks!

 

Harry.

1 ACCEPTED SOLUTION

Accepted Solutions
Ruksuro Member
Member

Re: Many to Many Measure

Hi Tom,

 

The act of producing a simplified model help the solution come to me! 

 

I simply needed:

 

  result measure = SUMX(DISTINCT('Join'[Group]),[Sum Table 1 Pop Measure]*[Sum Probabilities Measure])

 

I'll PM the dropbox link if you are curious.

 

Thanks anyway!

4 REPLIES 4
Super User
Super User

Re: Many to Many Measure

Hey,

 

can you please provide a sample pbix file and share the link to the file on onedrive or dropbox.

 

Regards 

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!
Highlighted
Ruksuro Member
Member

Re: Many to Many Measure

Hi Tom,

 

Will do! But I'll have to do it tonight from my home pc for corporate security reasons.

 

Watch this space!

 

Thanks again Smiley Happy

Ruksuro Member
Member

Re: Many to Many Measure

Hi Tom,

 

The act of producing a simplified model help the solution come to me! 

 

I simply needed:

 

  result measure = SUMX(DISTINCT('Join'[Group]),[Sum Table 1 Pop Measure]*[Sum Probabilities Measure])

 

I'll PM the dropbox link if you are curious.

 

Thanks anyway!

Super User
Super User

Re: Many to Many Measure

Perfect, I will have a look tomorrow, because I'm always curious :-)

 

Please mark your post with the DAX expression as answer, this may also help others.

 

Cheers

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!

Helpful resources

Announcements
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 394 members 3,634 guests
Please welcome our newest community members: