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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Sync two date slicers from different tables

Hi Team,

I have 3 tables in my model as below named Leads, leadids and Deposits

amitkumar93_0-1616599565838.png

 

amitkumar93_1-1616599565847.png

 

 

amitkumar93_2-1616599565856.png


and the relationship is as below

amitkumar93_3-1616599902526.png

 

 

Email (Leads) {1} ----------> {Many} Email (Lead ids)

Service UID (Lead ids) {Many} <---------> {Many} EID (Deposits)

I want to create a page where I would keep Sys Creation Date (Leads), Aff id (Leads)  as a slicer
A Table with Aff id (Leads),  Status (Leads)
A Table with Aff id (Leads), Deposits (Deposits)

There are two page level filters
Service UID (Lead ids) not blank
M Campaign ID (Deposits) not (-1)

Now when I select September 2019 in the Sys creation Date (leads) Slicer I see 49 Deposits
but when I select the same in Date (Deposits) Slicer I see 204 Deposits which is entirely correct as these are two different date columns

So I want to sync this two filters so that when I select let’s say September 2019 in Sys creation date slicer I want the Date slicer to be automatically filtered to September 2019 and give me the deposits value for the Date Slicer not Sys creation date slicer
I don’t want to keep Date slicer in the page too which will make user to select same value in both the slicer

Solution Tried:
1. I tried to Create a calendar table and tried to connect both Calendar (leads) and Date (deposits) with an active relation but it gave me following error

amitkumar93_4-1616602004457.png

 


2. I tried to create a measure with following

Deposits2 = CALCULATE ([Total Deposits], USERELATIONSHIP(Calendar__leads[Date],Deposits[DATE]))



But it gave me total deposits as 49 for selecting September 2019 in the Sys creation Date (leads) Slicer whereas I expected 204

3. I tried to create another measure as
Deposits3 = CALCULATE ([Total Deposits], TREATAS(VALUES(Leads[SYS_CREATATION_DATE]),Deposits[DATE]))

but it gave me some unexpected no as 40

I am just trying to understand if this can be possible with DAX

Thanks



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Many to Many between Deposits and Leadids is causing that.

 

Try to create one more common dimension to analyze and remove Many to Many join

refer

https://radacad.com/many-to-one-or-many-to-many-the-cardinality-of-power-bi-relationship-demystified

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Many to Many between Deposits and Leadids is causing that.

 

Try to create one more common dimension to analyze and remove Many to Many join

refer

https://radacad.com/many-to-one-or-many-to-many-the-cardinality-of-power-bi-relationship-demystified

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.