Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
We have a published model that I need to add a few tables to. I dont have the original pbix file.
I added 2 tables for Customer Segments and added a formula column. I get an error about the DAX formula but I can get this to work on a different new offline direct query power bi model.
I added joins and put this formula in:
SUMX ( 'Customer Segment Bridge', 'Customer Segment Bridge'[segment_allocation] * RELATED ( 'Flight Fact'[#Pax Quantity] ) )
Error
Expression: The column 'Flight Fact[#Pax Quantity]' either doesn't exist or doesn't have a relationship to any table available in the current context.
but it does. I can share the .bim file.
Any help how to debug will be great!
Solved! Go to Solution.
We solved this by removing the RELATED() function and changing the #Pax_Quantity to reference a calculated measure column. Im not sure why the original formula did not work on a published model but did on a direct query model. However, It is solved so we can close.
SUMX ( 'Customer Segment Bridge', 'Customer Segment Bridge'[segment_allocation] * [#Pax] ) )
Hi @mhamilt1 some of functions are not supported in Direct query. Sharing files could be via Office 365 or some others providers like Dropbox, Google drive. Hide sensitive data and sharw link
Proud to be a Super User!
We solved this by removing the RELATED() function and changing the #Pax_Quantity to reference a calculated measure column. Im not sure why the original formula did not work on a published model but did on a direct query model. However, It is solved so we can close.
SUMX ( 'Customer Segment Bridge', 'Customer Segment Bridge'[segment_allocation] * [#Pax] ) )
Hi @mhamilt1 to use RELATED you need to have regular many to one relationship in model.
Check your model for this part.
Useful link below
Proud to be a Super User!
Hi some_bih, I do have a many to 1 relationship. Is there any log or way to share the file to get some support that way. As far as I can see, I make the same join and formula in a new pbi workbook, publish it and it works but the one that is already published that I extend using tabular editor does not accept the formula. The tables are related because I can select from them and the joins work.
It is a funny join though. It is a many to one from a dimension bridge table to a fact table. The fact table may have joins to other dimensions which are many to one from fact to dim but the formula does not work if I only use the 2 tables.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |