Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have two columns in a table. Both columns have a user ID.
・ [Messages.reactions.user.userid]
・ [Message.from.user.id]
I want to get the DisplayName from the Users table using these user IDs. T
[The person who reacted] column
LOOKUPVALUE (Users [displayName], Users [id], ReactionsToMessages [Messages.reactions.user.user.id])
[Reacted person] column
LOOKUPVALUE (Users [displayName], Users [id], ReactionsToMessages [Messages.from.user.id])
As a result, an error occurred only for [the person who reacted]. The error message is as follows.
"The following syntax error occurred while parsing: invalid token"
To avoid this error I tried creating a relation between Users [id] and ReactionsToMessages [Messages.from.user.id].
However, the following error message was displayed. I do not know the intent of this message.
"You cannot create a direct active relationship between ReactionsToMessages and Users because there is already an active set of indirect relationships between these tables."
How can I achieve my goal?
Solved! Go to Solution.
Hi @wataruf,
while I'm too inexperienced in DAX and thus don't know a syntax error occurs, the reason why the message You cannot create a direct active relationship between ReactionsToMessages and Users because there is already an active set of indirect relationships between these tables. is displayed is:
Users is connected to a table X and the table X is connected to ReactionsToMessages or
ReactionsToMessages is connected to a table X and the table X is connected to Users.
This means that with table X, you have a indirect relationship between Users and ReactionsToMessages.
To successfully create a relationship between your two tables, delete the indirect link by deleting at least one of the two connections with the table X.
Hi @wataruf,
while I'm too inexperienced in DAX and thus don't know a syntax error occurs, the reason why the message You cannot create a direct active relationship between ReactionsToMessages and Users because there is already an active set of indirect relationships between these tables. is displayed is:
Users is connected to a table X and the table X is connected to ReactionsToMessages or
ReactionsToMessages is connected to a table X and the table X is connected to Users.
This means that with table X, you have a indirect relationship between Users and ReactionsToMessages.
To successfully create a relationship between your two tables, delete the indirect link by deleting at least one of the two connections with the table X.
Hi, @Anonymous
Thank you for your reply.
This leaves me with a question of how to get both Users [DisplayName] in these two columns.
Hi @wataruf,
if you have created a active relationsship between the two tables, you can select both columns of the different tables in a visual and there will not be any error (Unless you have a many-to-many-relation or the visual can only show one value).
Thank you for replying again.
However, I'm sorry.
I do not know how to operate.
I check the manual that describes how to operate Power BI.
Hi @wataruf,
I'm not sure what you want to do. But for example, if you want to show the value "DisplayName" with "UserId", you can use a table visual. If you create a table and click on it, you can choose which columns should be displayed. If you select "DisplayName" and "UserId", the table will show an error because the two columns are from different query tables. However, if you have created an active relationship between the two query tables, the table visual can show "DisplayName" with "UserId".
Hi,@Anonymous
Thank you for your kind response.
I want to close this case.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.