This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I feel this should be very easy but cant find the syntax.
I have 2 text columns [Name] and [Number]
I want to use a slicer to swap the [Name] for the [Number] to anonymise the data.
Many thanks
Chris
Solved! Go to Solution.
Hi @CEllis ,
Hope all is going well.
To dynamically switch columns, you can use field parameters, which is a preview function. The specific steps are as follows:
Enable field parameters in File>>Options.
Select New Parameter>>Fileds on the Modeling tab under the Report view.
Select the fields you want to apply as shown in the figure below. In this case, select "Name" and "Number" of the "Table" table.
Drag the Parameter you created into the table visual to display it.
Now you can select different items in Slicer to display different columns to achieve dynamic switching of columns.
If you want to know more about field parameters, please refer to the following documentation link.
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi @CEllis ,
Hope all is going well.
To dynamically switch columns, you can use field parameters, which is a preview function. The specific steps are as follows:
Enable field parameters in File>>Options.
Select New Parameter>>Fileds on the Modeling tab under the Report view.
Select the fields you want to apply as shown in the figure below. In this case, select "Name" and "Number" of the "Table" table.
Drag the Parameter you created into the table visual to display it.
Now you can select different items in Slicer to display different columns to achieve dynamic switching of columns.
If you want to know more about field parameters, please refer to the following documentation link.
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
@Anonymous
Fantastic works brilliantly, much appreciated.
If the number is on the same row as the name, just put the number into the slicer.
If not, can you share a bit more about your data/model?
I have the name in a lot of charts and tables and would like to be able to swap it dynamically when needing to demostrate to those who are not allowed to see the names.
TableNameNumber
| Name | Number |
| David | 1 |
| Paul | 2 |
| Katy | 3 |
| Fred | 4 |
| George | 5 |
If a slicer selection was "Yes" swap the Name for the Number.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 24 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 56 | |
| 50 | |
| 26 | |
| 19 | |
| 18 |