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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Idkpowerbi
Helper I
Helper I

Sharing values between parameter tables

 

EDIT: Sorry about the tables, I m posting from my phone so the tables look whacky after posting. The quality and production tables each have 3 columns, date, production/quality, production_plan/quality_plan. 

 

 

Production_parameters = {("Production",1),("Production_plan",1),("Production",2),("Production_plan",2)}



Measure_production = SWITCH(MAX('parameters'[value1]),"Production",SUM('Factory1'[Produced]),

"Production_plan",SUM('Factory1'[Production_plan]),"Production",SUM('Factory2'[Produced]),

"Production_plan",SUM('Factory2'[Production_plan]))



Quality_parameters = {("Quality",1),("Quality_plan",1),("Quality",2),("Quality_plan",2)}



Measure_quality = SWITCH(MAX('parameters'[value1]),"Quality",SUM('Factory1'[Quality]),

"Quality_plan",SUM('Factory1'[Quality_plan]),"Quality",SUM('Factory2'[Quality]),

"Quality_plan",SUM('Factory2'[Quality_plan]))

 

 

 

 

I wrote the above dax to create a parameter table(which I use for filtering visuals). Found it on a video introducing field parameters. 

 

The above code should create parameter tables as shown below. So now I have two parameter tables and they have two columns each value1 and value2 defaultly named so.

 

Value1Value2
Production1
Prodution_plan1
Production2
Production_plan2

 

As you would have seen the value 2 table is what I use for filtering(between 1 and 2). I also filter between plan and the actual values. So that demands me to have two parameter tables. Is there a way to share this value 2 between the two parameter tables so that I can  have a single filter for 1 and 2  and the quality and production filters are separate. It's very important that I have separate parameter tables. 

 

Also Attaching sample data. Thanks in advance. 

This is table for quality table for factory 1, similar can be assumed for factory 2.

 

Date    quality quality_plan
4/1/2023   6082
4/2/2023   7084
4/3/2023   6580

 

 

 

This for production table for factory 1(corresponding to filter 1) similar data for factory 2

Date    productionproduction_plan
4/1/2023    22612307
4/2/2023    23812307
4/3/2023    2467

2307

4 REPLIES 4
lbendlin
Super User
Super User

That's not how you normally define DATATABLE()  but hey, it works, sort of.

 

Since both your new tables have a column "Value2" you could create another table with that column, call it a dimension, and control both parameter tables from it ...  Of course the names don't matter but the idea would be the same - have a dimension table control the field parameter tables.

Can you show me how the new dimension table looks like? Also I am not sure how to control the parameter tables. Do I need to make relationships between the new table and parameter tables?

If this doesn't make sense 😞 please elaborate on your previous reply. Thanks for reading my question. 

Hey @lbendlin a bump in case you missed my previous question

 

Not sure where you are going with this.  based on the attached data model, what is your next step?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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