Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Problem with relations

Hello everyone.

 

I have this data model:

 

idconver.png

 

I have (or at least I tried) to have a bridge table with only the conversation ID field (and all the measures) to improve the relatinship between tables. This is working, but only with information of two of them. If I put a table with the conversation ID, a field from a second table and a field from a third one, it breaks. I already tried to change the relationships to both ways, but I always have the same issue. It is for sure a bad design, can anyone help me?

 

I have another question. One field related to the ID has several values separated in files, so each time I add the conversation ID and that field (tags). If the ID has 4 tags, I have 4 files with the same ID. That's the expected behaviour, but I need to put these tags in a line. I tried a conctatenatex measure, but it puts me all the tags instead of the ones related to the conversation. I could achieve it on Qlik with an aggr(concat(distinct measure, but I don't know how to do it in Power BI

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please create a measure as below and check if it will return your expected result...

Measure =
CONCATENATEX (
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[ID] = SELECTEDVALUE ( 'Table'[ID] )
            && 'Table'[Tags] <> BLANK ()
    ),
    'Table'[Tags],
    ";",
    'Table'[Tags], ASC
)

If the above ones can't help you, could you please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Just to update:

 

I solved the first question. I was using as bridge a table created from another with DAX. Instead of that, I did it in the Power Query and marked it as Reference. That fixed the issue.

 

Regarding the second question (concatenate several results from several rows in the same column), I am getting closer with the CONCATENATEX function, but I am having issues with blank records.

Anonymous
Not applicable

Hi @Anonymous ,

Please create a measure as below and check if it will return your expected result...

Measure =
CONCATENATEX (
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[ID] = SELECTEDVALUE ( 'Table'[ID] )
            && 'Table'[Tags] <> BLANK ()
    ),
    'Table'[Tags],
    ";",
    'Table'[Tags], ASC
)

If the above ones can't help you, could you please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.