Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am having trouble getting values from a Direct Query to appear correctly in a table using the CONCATENATEX fxn. I have tried multiple fxn setups and all present varying issues. Each row corresponds to a specific ID and each Finding (bmpObs) only appears once in the SQL dataset for each ID.
The SQL dataset looks similar to this:
ID#1 - value1
ID#1 - NULL
ID#1 - value2
ID#1 - value3
ID#1 - NULL
ID#2 - value1
ID#2 - NULL
ID#2 - value4
ID#2 - value6
ID#2 - NULL
ID#3 - value2
ID#3 - NULL
ID#3 - value4
ID#3 - value5
ID#3 - NULL
I'm trying to get a result that looks like:
ID#1 - value1, value2, value3
ID#2 - value1, value4, value6
ID#3 - value2, value4, value5
Here are the DAX formulas I've tried using, in addition to others I can't remember at the moment.
1.
List of BMP observations =
Solved! Go to Solution.
@Dangar332 I figured out the issue. It had something to do with the ordering of the relations to tables in the Model View - I shortened the path and it started working correctly using the following DAX:
Hi, @HoppeG76
try below measure
just adjust your table and column name
i am taking some different but end goal is same as you want
Measure 4 =
CONCATENATEX(
FILTER(
ALL('Table (5)'[Column1]),
'Table (5)'[Column1]<>BLANK()
),
'Table (5)'[Column1], ", "
)
@Dangar332 Thank you for your response, unfortunately this provides the same result as the third method in my post.
@Dangar332 Because this a Direct Query, I don't know how I would provide a sample to you, unfortunately. Thank you for your assistance.
hi, @HoppeG76
this function not support with direct query
This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
try to use in measure form
check official site of microsoft HERE
and check this HERE
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Dangar332 I figured out the issue. It had something to do with the ordering of the relations to tables in the Model View - I shortened the path and it started working correctly using the following DAX:
I have used it in other applications of Direct Query in the same dashboard, no issue, so I'm not sure why it's giving me an issue now.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |