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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
tloup
Frequent Visitor

Linking a custom table based on fact table with dimension table linked to the fact table

Hi

 

I have a custom table within my Power BI report that I want to link with a dimenstion table that's linked to my fact table. On the surface there are no obvious ways of joining the tables (custom & dimension) together using a standard drag and drop relationship creation. 

 

That said, making a relationship between the tables must be possible because the measures used for the custom table come from my fact table which is in turn linked to the department dimension table. 

 

Would be v grateful for any help at all!! 

 

Thanks. 

5 REPLIES 5
Ankur04
Resolver II
Resolver II

Hi,

 

could you please explain in details the exact requirement.

 

Thanks,

tloup
Frequent Visitor

Hi - so I have the below custom table which has been built using DAX code, and refers to measures already within the data model but when I use the dimension table to try and filter by market this table doesn't pick up the filter. I don't know how to build a table such as this using M code - is it even possible to refer to measures like I've done in DAX ?  

tloup_0-1718893206388.png

 

Anonymous
Not applicable

Thanks for the reply from@VijayP and@Ankur04, please allow me to provide another insight:

Hi,@tloup 

 

Has the problem been solved? If it does, share your solution and accept it as a solution that will help other community members who have the same problem as you.

 

Regarding the issue you raised, my solution is as follows:

 

1.First of all, what needs to be shown to you is that in PowerQuery, you can't reference measures, calculated columns and calculated tables, if you need to reference table data, it is recommended to use PowerQuery to add custom columns, and then rebuild the data reference relationship.

vlinyulumsft_0-1719823491424.png

Add a column from examples - Power Query | Microsoft Learn

 

2.Secondly, can you share the table relationship you have established, in the desktop, you can create the relationship between a normal table and a calculated table, but if it is a many-to-many relationship, it is very likely that the data will not be filtered.

vlinyulumsft_2-1719823552241.png

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

If you have new discoveries, you are also welcome to share them with us.

 

Best Regards,

Leroy Lu

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

 

 

 

VijayP
Super User
Super User

@tloup 

When you create a calculated table using DAX , it is not part of Data but it is part of Data model hence you cannot use it for the relation Data modelling. 
To get this table as a table for RDB, you should create this table at Power Query Editor




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


tloup
Frequent Visitor

Is it possible to build a table in this way using measures that I've already coded in DAX ?

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors