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
pr92
Frequent Visitor

Filter visual based on slicer on column from another table

Hello,

 

I have the following database model with 3 tables : Clients, Sales, DateTable

 

pr92_0-1689839788672.png

 

"Clients" is linked to "Sales" on "client_id"

"Sales" is linked to "DateTable" on "order_date"

 

I have a date slicer that takes the column "order_date" to filter the visuals.

I added a card with the SUM of "client_wallet"

 

pr92_1-1689839976247.png

 

 

However what I need is for this card to change its value according to the date filtered.

 

I need to SUM the value of "client_wallet" according to the date chosen by the user.

The equivalent in SQL would be : 

 

SELECT SUM(client_wallet)

FROM Clients INNER JOIN Sales on Clients.Client_id = Sales.Client_id

 

Is there any way to create a similar measure in DAX ?

 

Thank you

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @pr92 ,

 

For the sake of simplicity, I'd just change the relationship between Clients and Sales to bi-directional.

As an aside - once you have a properly-related calendar table, you should be using the calendar fields in slicers and visuals, not the fact fields.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @pr92 ,

 

For the sake of simplicity, I'd just change the relationship between Clients and Sales to bi-directional.

As an aside - once you have a properly-related calendar table, you should be using the calendar fields in slicers and visuals, not the fact fields.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




pr92
Frequent Visitor

Thank you - that worked.

 

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.