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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
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.