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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
cgpahnk
Frequent Visitor

Dynamic Field Parameter Not Working

Hello,

 

I am somewhat new to Power BI and these forums, but I'll try to convey my issue the best I can.

 

My goal is to have a dynamic graph for the Y value of each different Supplier Product Size over the span of every Week Year, but when I go to create a field parameter of these values and insert it, any selections made will not work.

 

The graph on the left is what I want to display with my selection, the right graph is my dynamic parameter graph with the field parameter slicer underneath.

 

cgpahnk_1-1705003186988.png

 

This is what my source data looks like:

-I did have to transpose this data within power query if that is of any signifance.

 

Wk YrWk 31 2021Wk 32 2021Wk 33 2021Wk 34 2021Wk 35 2021Wk 36 2021Wk 37 2021Wk 38 2021Wk 39 2021Wk 40 2021Wk 41 2021Wk 42 2021Wk 43 2021Wk 44 2021Wk 45 2021Wk 46 2021Wk 47 2021Wk 48 2021Wk 49 2021Wk 50 2021Wk 51 2021Wk 52 2021
Supplier 125 ML3335688742224554333225
Supplier 220 ML101087534457764222368887
Supplier 500 ML1111221111221111100110
Supplier 1000 ML0000001110000000001001
Supplier Cap1089101191110111212121211131391311151515
Supplier 8oz691095344333322456544610
Supplier 10oz1232433220222312346421

 

Also a snippet of what my data looks like after Power Query transformation:

cgpahnk_2-1705003757932.png

 

I would greatly appreciate any help anyone can give!

1 ACCEPTED SOLUTION
gadielsolis
Resolver III
Resolver III

Hello @cgpahnk ,

 

My advice would be using unpivot in power query to get the data in the following format:

 

gadielsolis_0-1705006335260.png

 

Once you have the data like that you can insert a slicer referencing the field "Product" so you can filter the product you want to see in the graph

gadielsolis_1-1705006397979.png

 

View solution in original post

6 REPLIES 6
cgpahnk
Frequent Visitor

@gadielsolis much appreciated! I think this will work. Only issue I have now is ordering the graph by date but I can probably create a date table for that.

 

Do you think I'd be able to have a dynamic target line that changes for each filter selection?

My advice would be create a separate table with the products and the target for each product (you can create it in excel or within power BI), after that you can connect both tables using the product field and add the target as a line in the grap). Find below some screenshots for reference

gadielsolis_0-1705017365428.png

gadielsolis_1-1705017372576.pnggadielsolis_2-1705017389328.png

 

Important: In the slicer you must use the product field coming from the targets table since this will be your key value.

gadielsolis
Resolver III
Resolver III

Hello @cgpahnk ,

 

My advice would be using unpivot in power query to get the data in the following format:

 

gadielsolis_0-1705006335260.png

 

Once you have the data like that you can insert a slicer referencing the field "Product" so you can filter the product you want to see in the graph

gadielsolis_1-1705006397979.png

 

Okay I might be really picking your brain here, but from these changes are you able to change the color of the column based on whether it exceeded the target or not (Like red for under and green for over)? Even after filtering with new target lines?

Hello, Sorry for the late response.

 

You can use the following DAX:

 

gadielsolis_0-1705073077373.png

And then create a conditional formatting for the columns:

 

gadielsolis_1-1705073096903.png

 

gadielsolis_2-1705073104904.pnggadielsolis_3-1705073111006.png

 

@gadielsolis You're incredible! I got mine up and running the way I want it, thank you.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.