Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
HI,
I want to create a custom data label with Dax, where it refers to multiple different things.
For instance, I have an unrelated table 1 and table 2.
In Table 1, there is one column with client names.
Client |
| Client 1 |
| Client 2 |
| Client 3 |
In Table 2, there are multiple columns but we only want to refer to the client identifier.
| Client Name | Identifier | Value |
| Client 1 | Client 1 UK | 10 |
| Client 2 | Client 2 USA | 20 |
| Client 2 | Client 2 EUR | 30 |
| Client 3 | Client 3 UK | 40 |
The result I would like to achieve in a measure is,
If(
Selectevalue(Table 1[Client]) = Selectedvalue(Table 2[Client Name]),
Table 2[Identifier]&"-"&Table 2[Value]
)
My problem: I can not seem to reference table 2 as in the bolded part. Could some explain why and provide a solution?
Hi,
Similarly to your if condition use a function like SELEDTEDVALUE or MAX and you can see the result.
E.g.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
No sorry this does not work.
Why do you use a max function, when the identifier column is a string?
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 12 | |
| 8 | |
| 5 |