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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
e2liu77
Helper I
Helper I

How apply filter in 2 different dimension tables

Hi ,

 

I have 2 tables, first table has "time", "A", "B", "C", "D" 4 columns. use time as filter.

Now I need to create a new table. New table column is based on ABCD calculation as below:

 

                     ColA                ColB              ColC

--------------------------------------------------------

Label1        B                           A                 C+D

Label2         D                         C                  A+B

Label3          0                         0                  A+B+C+D

 

I want filter "time" can be applied to the new table as well. When I create ColA ColB ColC as columns in new table, filter doesn't apply. Anyone has good idea how to acheive new table with filter applies in both old and new ones.

1 ACCEPTED SOLUTION

@e2liu77,

 

See code below.

IF (
    MAX ( table2[column1] ) =
Community Support Team _ Sam Zha
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

6 REPLIES 6
Stachu
Community Champion
Community Champion

I'm a bit confused here

1) is the new table already created, or do you need help in that?

2) if you filter time in the first table, which fields should pass the filter to second table?

in general calculated table will always be static and cannot be affected by slicer selection, changing filter etc.
you can create dynamic calculated table in a measure, but it will not be visible in the UI, it will be there just for the calculation to access



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Hi Stachu,

 

Thanks for helping me.

 

My problem is that in table 2, the colA, colB and ColC calculation is column1 value related. with different column1 label value, the formula used are different. When I am using "if(table2[column1] = "label1, formular1, if(table2[column1] = "label2", formula2,......", it always reports error "A single value for column 'Column1' in table 'FunnelTable' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

Anyway to put different calculation in 1 column based on column1 values?

@e2liu77,

 

Just change to MAX ( table2[column1] ).

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-chuncz-msft,

 

Sorry, I didn't get your point. How to use max() to switch between different text values in Column1?

@e2liu77,

 

See code below.

IF (
    MAX ( table2[column1] ) =
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, @v-chuncz-msft! It works now!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors