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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
HarrisonBi
Frequent Visitor

How to filter visuals correctly when using multiple dates

Hi,

 

I would like to know how (if possible) I can filter visuals correctly when I am using multiple dates. I will explain my situation below:

 

I have a date table and a sales table. These two tables are related by Date[Date] and Sales[InvoiceDate] as I usually report sales based on the invoice date and this has worked fine. 

 

However, on the sales table there is also another date called CreationDate, I would now like to see all my sales broken down by the creation date. So what I have done is, created an inactive relationship between Date[Date] and Sales[CreationDate] and created a measure 

CALCULATE(Sales[SalesTotal],

USERELATIONSHIP('Date'[Date],Sales[CreationDate]))

This works and I am able to use various columns from the date table (i.e. Financial Year) and see my sales according to the CreationDate - I have this displayed in a matrix.
 
However the problem I am facing is - if I click a month in the matrix, all the other visuals on the page are filtering the results based on the InvoiceDate NOT the CreationDate. I believe this is because the active relationship between the two tables is based on InvoiceDate.
 
How can I make the other visuals filter based on CreationDate when clicking a month in my matrix ?
 
Thanks
2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I think you will have to rewrite all the measures with the USERELATIONSHIP() function.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@HarrisonBi , When you filter months from the date table. Visual using USERELATIONSHIP('Date'[Date],Sales[CreationDate]) will filter on Creation date.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.