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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Single Date Slicer for multiple date columns with relationships between tables

Hi folks,

 

I have 3 tables:

- Accounts, with account_id and account open year

- Requests, with requests open year (and a relationship of 1-many between account and requests)

- Tasks, with tasks open year (and a relationship of 1-many between requets and tasks)

 

All relationships are active, and now the user requested to have a year filter where he needs to know what is the number of transacitons happened in a certain year for the 3 mentioned tables (count of accounts opened, requests and tasks).

 

I created a global dim table called year, added a year value into slicer. Defintly you can't relate this global table with the 3 tables since there are relationships already between them. 

How can I have a single year value that filteres all data coming from the 3 different sources? I uploaded my PBIX file here.

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@Anonymous in this case, you will have to create seperate measures to calculate your values and using inactive relationship.

 

Account_Open# = CALCULATE(COUNT(Accounts[Account_id]),USERELATIONSHIP('year'[Year],Accounts[Open_Year]))
 
Account_Requst# = CALCULATE(COUNT(Requests[Account_Id]),USERELATIONSHIP('year'[Year],Requests[Request_year]))
 
TAsk# = CALCULATE(COUNT(Tasks[Task_Id]),USERELATIONSHIP('year'[Year],Tasks[Task_year]))
 
negi007_0-1623497270060.png

 

i am attaching pbix file that you can modify as per your needs. but this should help you and take you in the right direction.

 




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



Proud to be a Super User!


Follow me on linkedin

View solution in original post

2 REPLIES 2
negi007
Community Champion
Community Champion

@Anonymous in this case, you will have to create seperate measures to calculate your values and using inactive relationship.

 

Account_Open# = CALCULATE(COUNT(Accounts[Account_id]),USERELATIONSHIP('year'[Year],Accounts[Open_Year]))
 
Account_Requst# = CALCULATE(COUNT(Requests[Account_Id]),USERELATIONSHIP('year'[Year],Requests[Request_year]))
 
TAsk# = CALCULATE(COUNT(Tasks[Task_Id]),USERELATIONSHIP('year'[Year],Tasks[Task_year]))
 
negi007_0-1623497270060.png

 

i am attaching pbix file that you can modify as per your needs. but this should help you and take you in the right direction.

 




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



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

Yup :), I used to have it before but resulted in a low performance issue given the fact of too much measures.

 

Isn't there any alternative solution? 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors