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
buddycho
Regular Visitor

Help using field parameters to allow report users to change the x-axis of the bar chart

Screenshot 2024-10-29 094518.png I want to have a bar chart where the FDI country name is the Y-axis, and viewers can select CapEx (sum of $), Jobs (sum), and Project Count (represented by count of the NE column). I need help with the DAX or a step-by-step visual tutorial on how to create this field parameter. It is unclear to me if I need to first make measures for Jobs, CapEx, and NE (count of projects). The table is: "2017-2023 FDI" 

2 ACCEPTED SOLUTIONS
dlopesc04
Resolver II
Resolver II

Here you go:

example_FP.gif

 Yeah, rule of thumb, always create measures for anything, even if it is just the sum of a column.

View solution in original post

Project Count = COUNT('Table'[NE])

View solution in original post

4 REPLIES 4
dlopesc04
Resolver II
Resolver II

Here you go:

example_FP.gif

 Yeah, rule of thumb, always create measures for anything, even if it is just the sum of a column.

will you show me how to make the measure for the project count (since I cannot use sum)?

Project Count = COUNT('Table'[NE])

SamWiseOwl
Community Champion
Community Champion

Hi @buddycho 

Yes you need to create measures for any calcualtions first.

Otherwise Power BI will treat them as categories.

Here is a step by step: https://www.wiseowl.co.uk/blog/s3054/field-parameters.htm


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

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!

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.