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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
whenriques
Helper I
Helper I

How to add Fields from Different Fact Tables to a Matrix?

Hope all is well!! Is it possible to add Direct Labor from one table and Total Overrun from a different table to a matrix report?

 

Both tables are related to the Date table based on Period. However, when I try to create a relationship between OrgName and Organization Name, Power BI cannot create this Many-Many relationship. Any thoughts or suggestions?

 

Any feedback from you would be greatly appreciated!!!

 

whenriques_0-1651183821791.png

 

1 ACCEPTED SOLUTION

Hi @whenriques ,

I updated your sample pbix file(see attachment). Please update the formula of measure [Total Overrun] as below, the part with red font is updated ones...

Total Overrun =
SUMX (
    FILTER (
        'Overrun Data',
        [OFRmapping] = "Overrun"
            && 'Overrun Data'[Organization] = SELECTEDVALUE ( 'TopRankingQuery'[OrgName] )
    ),
    [amount]
)

yingyinr_0-1651658198191.png

Best Regards

Community Support Team _ Rena
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

10 REPLIES 10
whenriques
Helper I
Helper I

Thank you very much for your response. I think we are getting close, but the overrun column is missing values... Do you think it is the way I have the data in the model? The overrun data is just a fact data table that I imported from Excel? Should I restructure the model differently?

 

whenriques_0-1651596656103.png

 

Thanks,

 

Willer

Hi @whenriques ,

I updated your sample pbix file(see attachment). Please update the formula of measure [Total Overrun] as below, the part with red font is updated ones...

Total Overrun =
SUMX (
    FILTER (
        'Overrun Data',
        [OFRmapping] = "Overrun"
            && 'Overrun Data'[Organization] = SELECTEDVALUE ( 'TopRankingQuery'[OrgName] )
    ),
    [amount]
)

yingyinr_0-1651658198191.png

Best Regards

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

Hi @v-yiruan-msft,

 

Thank you so much for your response!!! It worked great! I really appreciate you taking the time to look at my question. Your technical skills are superb!!! 🙂

 

Thanks again,

 

Willer

jsaunders_zero9
Responsive Resident
Responsive Resident

Start with creating a Organizations table and joining that to the Top Ranking Query and Overrun tables that will remove the many to many you currently have and allow you to do what you want to do.

If you can scrub your file of sensitive data and post a copy I can show you what I mean.

Thank you! I've been trying to post the pbix file, but it is not letting me... Any ideas?

Will need to upload to a file share and post the link - OneDrive normally works well.

I just sent you a link with the .pbix file. I would appreciate any feedback from you and thank you so much for taking a look. I appreciate your time and support!

I have updated this version, if you have any questions let me know.

Matrix Report Question.pbix

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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