Forum Discussion
Relationship and Unique Values
- 8 years ago
Hi klammymaster
Here is a DAX Soluction for creating a slicer table that will have unique values that you can create relationships too.
Then use the field in this table for your slicers
Slicer Table = DISTINCT( UNION ( ALL('biibuserdata'[biibEmail]) , ALL(Intune[Email address]) ) )
klammymaster, well if your bridge table is void of dupl or null values, it should work. here's an example.
Hi zenmemo,
Yes that's exactly what I'm trying to do but I'm not sure why it's not working. Attached are the steps I've done to remove the blanks, errors, null, and etc.
- Phil_Seamark8 years agoMicrosoft Employee
Hi klammymaster
Here is a DAX Soluction for creating a slicer table that will have unique values that you can create relationships too.
Then use the field in this table for your slicers
Slicer Table = DISTINCT( UNION ( ALL('biibuserdata'[biibEmail]) , ALL(Intune[Email address]) ) )- klammymaster8 years agoFrequent Visitor
Hi Phil_Seamark,
Where do I put the DAX formula? I tried creating a new measure and column and that didn't work. I also tried to create a Slicer Table but I'm not sure where to put the formula.
- Phil_Seamark8 years agoMicrosoft Employee
HI zenmemo
On the Modeling Tab of Power BI Desktop, you should see a New Table button. Click this and paste my code into the formula bar
This should create a table that will be visible in the Relationship View where you can create relationships to it from your existing tables.
- zenmemo8 years agoHelper I
klammymaster, I don't see that you filtered against null values or removed dupl. That would also contribute to the non-unique value error.