Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I'm making a matrix with a lot of info in it.
So my problem is that I have two tables with location. And I'm using one of them in my matrix. How to makt this dynamic? I was unable to make a relation between these two columns.
My matrix:
as you can see assignment by new etc are showing the same numbers, due to that they don't filter towards owning office.
Cause in the assignment table I have Owning office assignment.
Solved! Go to Solution.
I figured it out. The solution was to distinct join the columns from assignment and generaloverview to a new table OwningOffice. And use the values from there.
This article helped me figure it out:
https://community.powerbi.com/t5/Desktop/Getting-distinct-values-for-multiple-columns/td-p/31997
Hello Roha,
it's obvious that your relationships are not maintained in the data model. For this reason we see the repetition of your values.
Without a correct relationship between the two tables, these values will always be repeated.
To help you here it would be nice if you would give us sample tables that show the structure of real tables.
So we could help you with data modeling and your problem.
Without your SampleData Input it would be just meaningless guessing
If this post was helpful may I ask you to mark it as solution and give it some kudos?
Have a nice day!
BR,
Josef
Hi @JosefPrakljacic .
Thanks for answering.
These are the two tables I want to connect. But when I try to connect them, I'm only able to make a many to many connection, which I don't want. On one to may I get "the cardinality you selected isn't valid for this relationship".
If you would clean your "OwningOffice" Table because I think that "Bristol, Bristol" means just Bristol this would be a N:1 Relationship.
But looking at your data you wouldn't be finished. You need to clean your OwningOfficeAssignment Table also to reach a relationship. By cleaning i mean replacing the "office" suffix for instance.
Please use the PowerQuery Editor to clean up the columns and you may create a table afterwards based on your values.
I still get the same error when trying to relate them.
What I did:
I cleaned the owning office so that it's now the same values.
In the owning office assigment I only deselected a couple of coulumns which as irrelevant for the report. Still it should work shouldn't it?
Here are the values now:
I figured it out. The solution was to distinct join the columns from assignment and generaloverview to a new table OwningOffice. And use the values from there.
This article helped me figure it out:
https://community.powerbi.com/t5/Desktop/Getting-distinct-values-for-multiple-columns/td-p/31997
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
133 | |
76 | |
53 | |
38 | |
37 |
User | Count |
---|---|
203 | |
81 | |
71 | |
55 | |
48 |