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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
areias_br
Helper I
Helper I

Change a Table based on a Visual Filter of Unrelated Table

Hi,

I have two tables in my DB.

Table 1: AllActions => This table contains all the information from actions that are opened in the system.
Table 2: tb_Weekly => This table contains all the last days of each year's week and a collum called "Opened Actions" that shows me all the actions that have been opened in the system until that date.

To generate this collum "Opened Actions" I use the following formula:

Opened Actions =
COUNTROWS(
FILTER(
'AllActions',
'AllActions'[Created Date] < 'tb_Weekly'[Date] )

So, it counts all the rows (actions) that were opened before the date of the tb_Weekly. It's working fine. 

Problem:
It always shows me all the results from the table AllActions. However, I need to generate this table based on the dynamic filters the user can input into the table AllActions. For example, the status of the actions, the owner etc.

Below you can see the graph based on the tb_Weekly "Opened Actions". It need it to change accordingly to the filter the user select on "Status" which is a collum from AllActions.

areias_br_0-1715264178179.png

 




3 REPLIES 3
Anonymous
Not applicable

Hi @areias_br 

Based on your description, you can create a measure instead of the calculated column.

e.g 

MEASURE =
COUNTROWS (
    FILTER ( 'AllActions', 'AllActions'[Created Date] < MAX ( 'tb_Weekly'[Date] ) )
)

Then put the measure to the Y-axis.

the measure can changed dynamically by your slicer.

 

vxinruzhumsft_0-1715306670584.png

And you can refer to the attachments.

 

Yolo Zhu

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

 

Hi,

It didn't work. It shows me, and I don't know why, only the itens that were opened in that month, while it should show ALL the actions opened at all. 

areias_br_0-1715354598222.png

 

Anonymous
Not applicable

Hi @areias_br 

Thanks for your quick reply, you cna try the following measure.

MEASURE =
COUNTROWS (
    FILTER (
        ALLSELECTED ( 'AllActions' ),
        'AllActions'[Created Date] < MAX ( 'tb_Weekly'[Date] )
    )
)

Best Regards!

Yolo Zhu

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

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.