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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
navjot1317
Regular Visitor

Dax/Field Parameter tool in Power BI

Hi All,

 

I am new to this forum and will try my best to explain the issue i am facing as clearly as possible, I apologise in advance if i make any mistakes or was not clear enough please let me know. 

 

In Power BI I have tried to use the Field Parameter tool (Under Modelling in the Power BI ribbon):

 

Field Parameter Tool.JPG

 

and I am just having a really hard time getting it to work. What I ideally want to do is create a chart with dynamic x and y vaues that the user can select. I have tried numerous ways and for some reason have just not go it to work 😞 For some reason it keeps on showing a count, when i do not want it to do that I want it to show the values from the table. For example, when a user selects PCN and Asthma, I want it to show the summed values of Asthma patients across the PCNs. 

 

Chart Error.JPG

 

I have created a calcuated table which I am trying to use with the field parameters to allow the user to filter and select what they want to see. This sums all of the columns by PCN and GP Practice, which I have got to work fine no issues there. The issue occurs when I am trying to use the field parameter tool in Power BI to filter the below data:

 

Calculated Table Dax.JPG

 

Example data from the calculated table:

 

Example data calculated table.JPG

 

If anybody has more experience with this tool and knows how to overcome this, then I will be very grateful. 

 

Thank you for your help. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@navjot1317 , to me it seems like the axis column and measure is missing the relationship

 

I have tested this quite a few times, refer

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
Field Parameters- Conditional Formatting: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@navjot1317 , to me it seems like the axis column and measure is missing the relationship

 

I have tested this quite a few times, refer

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
Field Parameters- Conditional Formatting: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi Amit,

 

Thank you so much for the resources provided. 

 

I watched your youtube video and it was very helpful, I decided to not use the tool as I did not get it to work and instead used a SWITCH() statement with my slicer as you did and that worked a charm! 

 

You have earned another YouTube Subscriber, you are a Power BI god 🙂 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.