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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have the table below as well as other tables, the relationship between this table and the other tables is 1 to *; I created calculated coulmn in the below table and called maskedcountryname which shows Country 1 to 4 and then I created an island table which contains one column and two rows masked / unmasked. so what I am trying to do is that create a table visual which show either the name of the country or just the masked name as well as some columns pulled from the below table, measures created, and other columns from different table;
this is my code but its not woking as when I change the option from the slicer the name of the country does not change
anyone cna tell me why this is not working the slicer seems to return what has been selected but the table I created does not change at all.
| Country Name | Total Sales | Forecasted | Revenue | Budget |
| England | 100 | 1000 | 5000 | 500 |
| France | 200 | 3500 | 3400 | 600 |
| Germany | 300 | 4400 | 1200 | 800 |
| Spain | 400 | 7600 | 6230 | 900 |
Solved! Go to Solution.
Hi @Nabil20_24
I just created a DisplayedName measure instead of a calculated column and it worked perfectly.
I've also attached a link to a reference file. You can check it out as well.
Best Regards,
Muhammad Yousaf
If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.
Hi @Nabil20_24
I just created a DisplayedName measure instead of a calculated column and it worked perfectly.
I've also attached a link to a reference file. You can check it out as well.
Best Regards,
Muhammad Yousaf
If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.
Hello @Nabil20_24,
Can you please try this revised version:
DisplayedName =
IF(
SELECTEDVALUE(MaskTable[Mask], "Masked") = "Unmasked",
MAX('Data'[Country Name]),
MAX('Data'[MaskedName])
)
Hi Sahir,
Thanks for this. Actually max will return one row only
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 34 | |
| 27 |
| User | Count |
|---|---|
| 134 | |
| 101 | |
| 71 | |
| 67 | |
| 65 |