Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
sathishsam
Helper II
Helper II

How to have a dynamic field parameter names?

How to have a dynamic field parameter names? I tried below, however it always returns else condition value (Profit)

 

Parameter = {
    ("Market", NAMEOF('Hiearchy'[Level1Name]), 0),
    ("Market Unit", NAMEOF('Hiearchy'[Level2Name]), 1),
    (IF(SELECTEDVALUE('Col') = "Sales", "Sales", "Profit", NAMEOF('Hiearchy'[Level3Name]), 2)
}
2 REPLIES 2
sathishsam
Helper II
Helper II

I tried this but, its not working the way i wanted

amitchandak
Super User
Super User

@sathishsam , seem like you are trying to combine measure and axis/dimension slicer , that is not possible

 

refer these examples

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.