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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sathishsam
Helper I
Helper I

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 I
Helper I

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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