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 DAX generated tables with similar a similar column name:
Table1
Name Age
Alpha 5
Beta 14
Gamma 22
Table2
Name Age other columns
Alpha 5 xx
Beta 14 xx
Gamma 22 xx
Alpha 12 xx
Beta 14 xx
Gamma 27 xx
I have a slicer called Name based on Table1. I want this slicer to also influence Table2.
I tried https://blogs.technet.microsoft.com/cansql/2016/12/19/relationships-in-power-bi-fixing-one-of-the-co... but this works in power query only. My DAX generated tables are not present in power query.
Is there a way to link them so this works?
Solved! Go to Solution.
in DAX you can do it like this
Name Slicer = DISTINCT(UNION(VALUES('Table1'[Name]),VALUES('Table2'[Name])))
and then create a join to your data tables
you need to either join the tables or create a virtual join with DAX
the simplest solution is to create a 3rd table that will only have unique names and join it with the 2 data tables with slicer on a new table
more complex options is using TREATAS to create virtual reltionship
https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/
Thanks for the suggestions @Stachu
can you suggest how best to make and link the third table? I am still relatively new to pbi
in DAX you can do it like this
Name Slicer = DISTINCT(UNION(VALUES('Table1'[Name]),VALUES('Table2'[Name])))
and then create a join to your data tables
Covering 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 |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |