Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a problem between 3 related tables. I have 1 table with exclusive rate data, this table is related to a policy table where I have several policies for the same rate (repeated rates), and I have a rate table relating to the rate table, where in the rate table got the same rate 1 or more times.
I need to insert columns in the "table" view of the 3 related tables but it shows me the error below.
what do I do?
Solved! Go to Solution.
I haven't solved it yet, I'm modeling the data directly in SQL to help the relationship even more in the pbi, concluding, let me mark it as solved with the solution, thank you very much for the problem solving suggestions.
and why the table "tariffs_details" can't do this function? where this table is a dimension table.
because when you add fields which are unrelated you get the error you posted in the first post. To include unrelated fields you need measures.
For example, let's say I have two tables. Both contain dates (so I create a dimension table for dates) and table 1 contains another field for football teams and the other contains a field for countries. There is no classification between teams and countries. If you try to create a visual with date from the dimension field Dates and the add the teams and countries, the model has no way of knowing which Team belongs to which country, because there is no "relationship". So it can only crossjoin the fields. The model will not intuitively associate fields. The model needs specific relationships, and you cannot create a relationship between Teams and countries because the data does not allow it.
What you can do is for example use measures to count the number of teams and countries on each date.
BTW, I would recommended you make the relationships single direction from the dimension table to the fact tables
Proud to be a Super User!
Paul on Linkedin.
The problem that in the "Tariffs" table, I have 1 tariff 1 or several times and in it I can have 1 or more policies, is that the view I have is more of a relational database, where there would be no problem relating this data , more doubt than solution arose, shouldn't the tables talk in my case? the "tarifas_details" table I have 1 rate, exclusive values, the "tariffs" table I have 1 rate several times, and in politics I can have the same rate several times too. I have more questions now than solutions.
And if I use a dax aggregation function, for example the DAX max function, just to bring me the hotel ID value, would I be wrong?
Max will return the Max value. To show all values you can use CONCATENATEX
Proud to be a Super User!
Paul on Linkedin.
I haven't solved it yet, I'm modeling the data directly in SQL to help the relationship even more in the pbi, concluding, let me mark it as solved with the solution, thank you very much for the problem solving suggestions.
You need dimension tables for each field common to both tables to use in the visual. Fields which are not common require measures
Proud to be a Super User!
Paul on Linkedin.
Speaking of dimension table, and if I bring a column with unique data in the Tariff table, for example, and bring this column in common in the policy table even if they are repeated, would that solve?
You would still need a dimension table for the field. Otherwise you create ambiguity based on field selection
Proud to be a Super User!
Paul on Linkedin.
and why the table "tariffs_details" can't do this function? where this table is a dimension table.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
144 | |
73 | |
64 | |
52 | |
51 |
User | Count |
---|---|
208 | |
91 | |
62 | |
59 | |
56 |