Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
If I select a Brand from slicer, I need to create a new table with Distinct values of colmun color ie:
reult will be a new calculated table with 3 colors Red,Green, Blue
Thank you
Solved! Go to Solution.
Hi @Maghed ,
According to your description, I created a sample and here is my solution.
Firstly, you can create a new table by using SUMMARIZE function to reference the "color" column.
Table_summarize =
SUMMARIZE ( 'Table', 'Table'[Colors] )
Then, create a measure to connect with the slicer.
control =
VAR _slice =
SELECTEDVALUE ( 'Table'[Brand] )
RETURN
IF (
COUNTROWS (
FILTER (
'Table',
SEARCH ( MAX ( 'Table_summarize'[Colors] ), MAX ( 'Table'[Colors] ),, -1 )
)
) > 0,
1,
BLANK ()
)
Remember to establish a relationship between two tables.
Then you will get the expected output.
And I've also created an additional example to give you a clearer view of how the formula works.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Maghed ,
According to your description, I created a sample and here is my solution.
Firstly, you can create a new table by using SUMMARIZE function to reference the "color" column.
Table_summarize =
SUMMARIZE ( 'Table', 'Table'[Colors] )
Then, create a measure to connect with the slicer.
control =
VAR _slice =
SELECTEDVALUE ( 'Table'[Brand] )
RETURN
IF (
COUNTROWS (
FILTER (
'Table',
SEARCH ( MAX ( 'Table_summarize'[Colors] ), MAX ( 'Table'[Colors] ),, -1 )
)
) > 0,
1,
BLANK ()
)
Remember to establish a relationship between two tables.
Then you will get the expected output.
And I've also created an additional example to give you a clearer view of how the formula works.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great Support. Thank you ✌️
User | Count |
---|---|
79 | |
76 | |
68 | |
66 | |
53 |
User | Count |
---|---|
104 | |
99 | |
92 | |
78 | |
69 |