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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ketthos
Frequent Visitor

Help with 2 fact tables and relations

Hello,

I need your help to understand how I can solve my problem, I have 2 fact tables and their dimensions, I would like to be able to use the 2 fact tables to get their calculated value, you can see my explanation in image.

 

For example, I have my Demande fait table which contains calculated values, which is linked to Demande and also linked to Activité, but we want users to also have access to the calculated values ​​of the "Activité fait" fact table.

ketthos_0-1721314028190.png

 

How could this problem be resolved?

 

Thank you for your help

1 ACCEPTED SOLUTION
v-zhouwen-msft
Community Support
Community Support

Hi @ketthos ,

If I understand wrongly, please correct me.You could perhaps use the 'CROSSFILTER' function.

CROSSFILTER function - DAX | Microsoft Learn

The Table data is shown below:

Table1:

vzhouwenmsft_0-1721369808908.png

Table2:

vzhouwenmsft_1-1721369833896.png

Table3:

vzhouwenmsft_2-1721369860317.png

vzhouwenmsft_3-1721369914549.png

Measure = 
CALCULATE(SUM(Table3[Value]),
CROSSFILTER(Table1[ID],Table2[ID],Both)
)

vzhouwenmsft_4-1721369991362.png

 

Best Regards,
Wenbin Zhou

View solution in original post

2 REPLIES 2
ketthos
Frequent Visitor

Hello, first of all, thanks for your answer, i've checked what you say, and everthing works perfeclty, thanks a lot.  I've used both relationship too on other sample and that works too! 

 

Thanks for your help.

v-zhouwen-msft
Community Support
Community Support

Hi @ketthos ,

If I understand wrongly, please correct me.You could perhaps use the 'CROSSFILTER' function.

CROSSFILTER function - DAX | Microsoft Learn

The Table data is shown below:

Table1:

vzhouwenmsft_0-1721369808908.png

Table2:

vzhouwenmsft_1-1721369833896.png

Table3:

vzhouwenmsft_2-1721369860317.png

vzhouwenmsft_3-1721369914549.png

Measure = 
CALCULATE(SUM(Table3[Value]),
CROSSFILTER(Table1[ID],Table2[ID],Both)
)

vzhouwenmsft_4-1721369991362.png

 

Best Regards,
Wenbin Zhou

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.