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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.