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.
Hi there,
I have two measures (A, B). They both have tags (positive, negative, neutral):
Now, I want to be able to filter for a specific tag and show next to the measure a concatenation of ALL tags of that measure.
When I filter on the tag "neutral" currently I'm only getting the tag neutral next to the measure.
The final "Tag Name" I want to obtain should "positive, negative, neutral" since in the data set the measure A has all tags.
Any idea how to approach this?
My Power BI Example file is uploaded here: https://easyupload.io/2h5y0d
Thanks!
Solved! Go to Solution.
Hi @HR3038511,
You can approach this problem by creating another table containing the measure and the concatenated tags and using relationships to display correct values on filtering.
The steps are explained below. To implement the below steps, please refer to the pbix file attached.
Measure Table
Concatenated Tags Table
Due to the relationships, the Tag Name from the Measure table should filter the corresponding Measure and subsequent Tag List in the Concatenated Tags table.
Examples:
Please refer to the pbix file attached - https://easyupload.io/xnlt7w
Let me know if you have any questions!
Hi @HR3038511
Thanks for the reply from @Bipin-Lala , please allow me to provide another insight:
Add a measure:
MEASURE 2 =
VAR _currentMeasure =
SELECTEDVALUE ( 'Measure Table'[Measure] )
RETURN
CONCATENATEX (
FILTER ( ALL ( 'Measure Table' ), 'Measure Table'[Measure] = _currentMeasure ),
[Tag Name],
","
)
Then add the measure to the table visual, the result is as follow:
PBI file attached, hope this helps.
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @HR3038511
Thanks for the reply from @Bipin-Lala , please allow me to provide another insight:
Add a measure:
MEASURE 2 =
VAR _currentMeasure =
SELECTEDVALUE ( 'Measure Table'[Measure] )
RETURN
CONCATENATEX (
FILTER ( ALL ( 'Measure Table' ), 'Measure Table'[Measure] = _currentMeasure ),
[Tag Name],
","
)
Then add the measure to the table visual, the result is as follow:
PBI file attached, hope this helps.
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @HR3038511,
You can approach this problem by creating another table containing the measure and the concatenated tags and using relationships to display correct values on filtering.
The steps are explained below. To implement the below steps, please refer to the pbix file attached.
Measure Table
Concatenated Tags Table
Due to the relationships, the Tag Name from the Measure table should filter the corresponding Measure and subsequent Tag List in the Concatenated Tags table.
Examples:
Please refer to the pbix file attached - https://easyupload.io/xnlt7w
Let me know if you have any questions!
User | Count |
---|---|
85 | |
74 | |
71 | |
68 | |
56 |
User | Count |
---|---|
96 | |
94 | |
92 | |
78 | |
71 |