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
pedroccamaraDBI
Post Partisan
Post Partisan

Sum from a second lookup table

Hello all

I have my sales fact table, (1st) with all the values that i need. This fact table is connected to clients dimension table (2nd) and this one is also connected to another dimension table, (3rd) for cost center.
In my report i want to show my sales measure by cost center, i mean, total sales from the first table, using the cost center filter from the 3rd table, like this pic

Capture.JPG
Thanks a lot all of you
Best regards

Pedro

1 ACCEPTED SOLUTION

well there are several ways to do this

 

1. for the purposes you can use crossfilter which will allow you to  create the bidirectional relationships in a measure rather than in your active relationships.  bidirectional relationships generally are not recommended

https://radacad.com/dax-crossfilter-function-in-power-bi-write-the-formula-both-directional-but-keep...

2. you can denormalise the dimension tables into one table 

3. you can use bidirectional relationships but crossfilter would be better

 

if you able to share some dummy data i can mock it up





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
vanessafvg
Super User
Super User

so your relationships are all single directional ie your fact has a many to one relationship with 2nd table and 2nd table has a many to one relatonship with table 3?  

have you set this up already can you screen shot your relationships?

 

firstly what is the purpose of using table 3? using cc name?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hello @vanessafvg 
Thank you for your message and i'll try to answer you.
My relationships are both single direction. Like this picture and not the other above.
Capture.JPG
And the purpose of using table 3 is because at some point, i believe i'm gonna add another table to table 3 and also i need to use those fields with hierarchies.
Thansk a lot
Pedro

well there are several ways to do this

 

1. for the purposes you can use crossfilter which will allow you to  create the bidirectional relationships in a measure rather than in your active relationships.  bidirectional relationships generally are not recommended

https://radacad.com/dax-crossfilter-function-in-power-bi-write-the-formula-both-directional-but-keep...

2. you can denormalise the dimension tables into one table 

3. you can use bidirectional relationships but crossfilter would be better

 

if you able to share some dummy data i can mock it up





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thank you so much @vanessafvg for your answer.

I believe i will keep it simple and option 2 will be better, for the purpose of adding another table in the future.
Best regards
Pedro

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.