- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Create a table out of measure which is dynamic
Hi
I have a table A which has some segments. I have a slicer visual added to the report where I select some of the segments.
I want to create a separate table B which has just the segments that were selected in the slicer. This table would be dynamic.
I created a measure in the table A that combines all the segments selected and concatenates them with a comma in between.
I want to create the table B which
1. First takes the measure I created
2. And then transpose them so that each segment is a row by itself.
Please advise
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @snair2283 ,
As @Greg_Deckler mentioned, a calculated table in the data model cannot dynamically respond to slicer selections. However, you can simulate the visual effect of the ConcatenateX result displaying in rows instead of horizontally concatenated text by using a measure like the one shown below:
SelectedSegments with line break = CONCATENATEX(VALUES(TableA[Segment]), TableA[Segment], UNICHAR(10))
The resulting output is shown below. Please note that when exporting this to a csv file, it will be displayed in a single cell rather than split into four separate rows, which may not meet your requirements.
I have attached an example pbix file for your reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @snair2283 ,
As @Greg_Deckler mentioned, a calculated table in the data model cannot dynamically respond to slicer selections. However, you can simulate the visual effect of the ConcatenateX result displaying in rows instead of horizontally concatenated text by using a measure like the one shown below:
SelectedSegments with line break = CONCATENATEX(VALUES(TableA[Segment]), TableA[Segment], UNICHAR(10))
The resulting output is shown below. Please note that when exporting this to a csv file, it will be displayed in a single cell rather than split into four separate rows, which may not meet your requirements.
I have attached an example pbix file for your reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@snair2283 That's not really possible if I understand what you are trying to do. The only way to sort of do it is to use TOCSV. DAX tables are calculated at the time of refresh and thus are not dynamic.
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
01-03-2024 11:22 AM | |||
Anonymous
| 02-12-2024 02:37 AM | ||
11-27-2023 08:52 AM | |||
12-19-2023 01:52 PM | |||
06-11-2024 12:36 AM |
User | Count |
---|---|
23 | |
12 | |
10 | |
9 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |