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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Creating a secondary "primary" date filter

Hello Community   -   Was not sure how to title my "subject" but I'll explain what I am trying to do: 

 

Essentially, I have a date table and a fact table with the primary (active) relationship between "date" and "received date".   

 

I can filter an entire page by using the "date" value in a slicer on the page itself.   This of course filters everything by the received date.    What I would like to be able to do, is to have another slicer on the page, this one would be "start date".   

 

I would like the user to be able to globally filter the page by either one of these slicers  (both dates appear in the fact table).    Is this possible using something like USERELATIONSHIP?

 

 

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Not sure if I understand you correctly, but normally we could simply use SELECTEDVALUE() or VALUES() function to get the value of slicers which means you don't need relationships between tables.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , if the start date and date have inactive relation, then you can use userelationship and the date filter will apply there too.

 

if you need all together different date than what you have in date, you can filter start date itself or have another date table.

 

refer: https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

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
Anonymous
Not applicable

Yes, thanks.   I was hoping for a solution that allowed a global filter with the inactive date.   The normal method means that for every new measure or calc column you would have to use the userelationship function each time.   The other method is just duplicating the table and creating an active relationship against the other date column I want to use.    So you end up with two exactly same tables, but each connected to the date table on different dates.    

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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