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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Rai_BI
Helper IV
Helper IV

How to make a measure respect the relationship between three tables in the snowflake schema?

Hi ninjas!

 

In Power BI I have a data model composed of the following tables

A goals table called "fMetas" which contains the following fields:
'Date' (period to which the target refers),
'Cod RCA' (seller code),
'RCA Name' (seller name),
'Line Code' (product line code),
'Line' (name of the product line),
'Meta Value' (seller's target value)

 

A table called "dClientes" that basically works as a portfolio of customers and their respective responsible sellers. This table contains the fields:
'Customer Code' (customer code),
'Customer Name' (customer name),
'Cod RCA2' (1st seller's code),
'RCA2 name' (name of the 1st seller),
'Cod RCA3' (2nd seller's code),
'RCA3 name' (name of 2nd seller),
'RCA2 Key' (key that concatenates the 1st seller's code with the customer's code),
'RCA3 Key' (key that concatenates the 2nd seller's code with the customer's code).


A table called "dClientes (Aux)". This table is an auxiliary table for the "dClientes" table.
This table contains the following fields:
'Cod RCA (seller code),
'RCA name (seller name),
'Customer Code' (customer code),
'_Key' (key that concatenates the seller's code with the customer's code)

 

The fields 'Cod RCA2' and 'Cod RCA3' in the "dClientes" table are related to the 'Cod RCA' field in the "fMetas" table.

 

The '_Key' field in the "dClientes (Aux)" table is related to the 'RCA2 Key' and 'RCA3 Key' fields in the "dClientes" table

 

I intend to use the 'RCA Name' field from the "dClientes (Aux)" table as a data segmenter.


I intend to use the field 'Name RCA2' and 'Name RCA3' from the "dClientes" table in visuals such as graphs and tables.

 

I need a DAX measure that calculates the RCA2 and RCA3 target.

 

I need the filter direction to follow the flow "dClientes (Aux)" > "dClientes" > "fMetas", because when I figure out how to do this I will break the RCA goal to its respective clients.

1 REPLY 1
Anonymous
Not applicable

Hi @Rai_BI 

 

Could you please provide raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.