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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
pedroccamaraDBI
Post Partisan
Post Partisan

Total sales for 2 date table

Hello all

I'm trying build a visual where i can see the total sales for each selected period.
Total Sales (date1) = SUM (Sales)
Total Sales (date2 = CALCULATE ([Total Sales], USERELATIONSHIP( Date2[date], Sales[Date]))
Do you need to use also REMOVEFILTERS or KEEPFILTERS in each measure for the other date table? 
I've tried and it's not working and don't know how to try those.

Can you help?
Thanks a lot

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

Try using CROSSFILTER or INTERSECT:
https://docs.microsoft.com/fi-fi/dax/crossfilter-function
https://docs.microsoft.com/fi-fi/dax/intersect-function-dax





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ValtteriN
Super User
Super User

Hi,

Try using CROSSFILTER or INTERSECT:
https://docs.microsoft.com/fi-fi/dax/crossfilter-function
https://docs.microsoft.com/fi-fi/dax/intersect-function-dax





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you very much!!!!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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