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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kamiluc
Helper I
Helper I

Create a new appended (union) table that responds to filters from original tables

Hi there,

I’m creating a report for a controls process where remediation plans (RemPlans) get created through different processes.  For example, a control can have a remediation plan created directly against it, or it can be created as a result of a testing on this control.

 

This causes my data model to be something like this:

kamiluc_1-1704775544082.png

 

Now, I wanted to create a single table in my report showing a list of remediation plans. I’ve created a calculated column in each RemPlan table to tell me the source of the RemPlan, and used UNION() to append the tables. 

 

My problem is that this calculated table doesn’t respond to filters applied to the original tables, as it’s not connected to the model.  Such a simple task but I haven’t been able to find a way to solve this.  My table visual should look like this:

Source

Control_ID

RemPlan_ID

Status

Control

ABC

123

Closed

Test

ABC

456

Open

 

I’ve searched other posts but couldn’t find quite the right solution. Any help is greatly appreciated!

1 ACCEPTED SOLUTION
kamiluc
Helper I
Helper I

I've found a solution for this that works in my case.

As mentioned in the original post, I created a table combining the remplans using UNION() - "combined_remplans".

I then created a measure like the one below and I then pass it to the table visual where I bring the columns from my union table. This filters based on the filters applied to the page:

 

RemPlan filter = 

var rp1 = VALUES(RemPlan1[RemPlan_ID])

var rp2 = VALUES(RemPlan2[RemPlan_ID])

var rp_combined = UNION( rp1, rp2)

return

IF( SELECTEDVALUE('combined_remplans[RemPlan_ID]) IN rp_combined, 1, 0)

View solution in original post

1 REPLY 1
kamiluc
Helper I
Helper I

I've found a solution for this that works in my case.

As mentioned in the original post, I created a table combining the remplans using UNION() - "combined_remplans".

I then created a measure like the one below and I then pass it to the table visual where I bring the columns from my union table. This filters based on the filters applied to the page:

 

RemPlan filter = 

var rp1 = VALUES(RemPlan1[RemPlan_ID])

var rp2 = VALUES(RemPlan2[RemPlan_ID])

var rp_combined = UNION( rp1, rp2)

return

IF( SELECTEDVALUE('combined_remplans[RemPlan_ID]) IN rp_combined, 1, 0)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.