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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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