Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have two tables with a many to one relationship:
Table1
Col1
1
2
3
Table2
Col1
1
1
1
5
5
4
I want to create a column that I can filter on that will show values:
1
2
3
4
5
I tried creating a column:
Col3 = IF( ISBLANK('Table1'Col1), MAX('Table2'Col1),'Table1'Col1)
But htat doesn't seem to be working.
Any help appreciated 🙂
Solved! Go to Solution.
@Anonymous,
You can create a new table using Dax below.
newtable =
FILTER(
DISTINCT(
UNION(
DISTINCT(Table1[Col1]),
DISTINCT(Table2[Col1])
)
),
NOT(ISBLANK(Table1[Col1]))
)
)
Regards,
Lydia
@Anonymous,
You can create a new table using Dax below.
newtable =
FILTER(
DISTINCT(
UNION(
DISTINCT(Table1[Col1]),
DISTINCT(Table2[Col1])
)
),
NOT(ISBLANK(Table1[Col1]))
)
)
Regards,
Lydia
Hi @Anonymous,
Not sure what you want to do but if you want to create a new table only with unique values the best way to do it is on the query editor.
You should append both tables, delete all the columns you don't need and then Remove duplicates.
Regards.
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |