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.
Hello All,
I am new to Power BI.
I have a page where I need to show my measure names based on a parameter
If parameter ='Sales' then sales value
else parameter ='Profit' then profit
I am not sure how to do this.
Could any one please help
Solved! Go to Solution.
Hi @Anonymous
It sounds like dynamic measure name, however, the name of column or measure cannot be changed dynamically in Power BI Desktop. You can use slicer, then select the measures according to the slicer. In this scenario, it will not change the name of the measure, but the calculation expression.
For example,
(1) the measure below returns [Profit] when you select "Profit" in Slicer, as is "Sales"
(2) Besides, you can use title function of that visual
Steps:
TitleMeasure =
SWITCH(TRUE(),
MIN(Slicer[Column1])="Profit","Profit",
MIN(Slicer[Column1])="Sales","Sales")
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
It sounds like dynamic measure name, however, the name of column or measure cannot be changed dynamically in Power BI Desktop. You can use slicer, then select the measures according to the slicer. In this scenario, it will not change the name of the measure, but the calculation expression.
For example,
(1) the measure below returns [Profit] when you select "Profit" in Slicer, as is "Sales"
(2) Besides, you can use title function of that visual
Steps:
TitleMeasure =
SWITCH(TRUE(),
MIN(Slicer[Column1])="Profit","Profit",
MIN(Slicer[Column1])="Sales","Sales")
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , you need a measure slicer. Refer
measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...
https://www.youtube.com/watch?v=vlnx7QUVYME
or
calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/
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 |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 49 | |
| 47 | |
| 40 | |
| 21 | |
| 18 |