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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
DavidKuhry
Frequent Visitor

Control Field Parameters with Related Table?

Simple Version:

Essentially, I want to use a related custom table, to filter the field parameter tables in order to build a chart with a custom Y and X axis using predefined styles. 

 

Have one Field Parameter containing measures that would be put in the Y axis, and the other containing DIMs in the X. When I select a value from the custom table, say "Sales by Color" it would filter the 2 param tables and create a chart of Sales by Color. 

 

My actual use case: 

So I have a set of Field Parameters that I use to build the X and Y axis of a chart. If I do this in the normal way of having a slicer for each of them, then it works.

 

But I want to use a custom table in the middle with a relationship to each field param table so that based on the selection from the custom table, it'll filter the 2 parameters to values that match and use those in the table.

 

Param 1

ValueExpressionOrder
Value 1.aExp10
Value 1.bExp21
Value 1.cExp32

 

Param 2

ValueExpressionOrder
Value 2.aExp10
Value 2.bExp21
Value 2.cExp32

 

Custom Table

Value

Param 1 KeyParam 2 key

Custom 1

00
Custom 201
Custom 312

 

Relationships are from the Custom Table Key to the applicable Param table Order columns.

 

So if I put the Value column from the Custom Table into a slicer:

  • Custom 1 would filter to 1.a and 2.a

  • Custom 2 would filter to 1.a and 2.b

  • Custom 3 would filter to 1.b and 2.c

Is there a way to get this to control the field parameter values in my chart? Currently it does not even though they are the only values. Is there a way to "select" them without directly selecting them in a slicer?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DavidKuhry ,

You can try to use measure to achieve the effect.
1. Create a calculation sheet.

Table = GENERATE(SELECTCOLUMNS('Table1',"Value1",'Table1'[Value],"Order1",'Table1'[Order]),SELECTCOLUMNS('Table2',"Value2",'Table2'[Value], "Order2",'Table2'[Order]))

vkaiyuemsft_0-1713336975393.png


2. Create measure.

Measure =
VAR _value1 = SELECTEDVALUE('Table'[Value1])
VAR _value2 = SELECTEDVALUE('Table'[Value2])
RETURN
SWITCH(
TRUE(),
_value1="Value 1.a"&&_value2="Value 2.a","Custom1",
_value1="Value 1.a"&&_value2="Value 2.b","Custom2",
_value1="Value 1.b"&&_value2="Value 2.c","Custom3"
)

vkaiyuemsft_1-1713337073765.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @DavidKuhry ,

You can try to use measure to achieve the effect.
1. Create a calculation sheet.

Table = GENERATE(SELECTCOLUMNS('Table1',"Value1",'Table1'[Value],"Order1",'Table1'[Order]),SELECTCOLUMNS('Table2',"Value2",'Table2'[Value], "Order2",'Table2'[Order]))

vkaiyuemsft_0-1713336975393.png


2. Create measure.

Measure =
VAR _value1 = SELECTEDVALUE('Table'[Value1])
VAR _value2 = SELECTEDVALUE('Table'[Value2])
RETURN
SWITCH(
TRUE(),
_value1="Value 1.a"&&_value2="Value 2.a","Custom1",
_value1="Value 1.a"&&_value2="Value 2.b","Custom2",
_value1="Value 1.b"&&_value2="Value 2.c","Custom3"
)

vkaiyuemsft_1-1713337073765.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.