Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have the following database model with 3 tables : Clients, Sales, DateTable
"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"
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
Solved! Go to Solution.
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
Proud to be a Datanaut!
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
Proud to be a Datanaut!
Thank you - that worked.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!