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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jx615k
Frequent Visitor

Select column in a slicer

I have a table with multiple Date columns, is there a way a user can select which column they want to use in a slicer?  
Thanks in advance for your kind support! 
Sincerely Jordan
 

 
2 ACCEPTED SOLUTIONS
VijayP
Super User
Super User

You can . But all Date Collumns in the fact table to be connected with DateDim[Date] and status will inactive except one base Date Relation. If I understood your question correctly you need to use USERELATIONSHIP Function to get this! let me know if this is helpful




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

@jx615k 

 

If possible, you may also try Unpivot Columns in Query Editor.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
amitchandak
Super User
Super User

@jx615k ,With multiple dates you can have a connection with all dates and then use userelation or crossfilter based on the need.

Please find an example on my blog

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

Thanks for the response Amit,

 

Maybe my question wasn't clear, Imagine I have many Date Columns (more than 40) for example HIRING_DATE, FINISH_DATE, LEAVE_DATE.... and the user needs to select one of those multiple columns and use a slicer so he/she can select a date or range of dates.

 

I was thinking having 2 slicers, one used to select a particular Column, and the second slicer used to select dates from that particular column.

 

You think that can be possible?

 

Thanks and regards.

@jx615k 

 

If possible, you may also try Unpivot Columns in Query Editor.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

As per my understanding USERELATIONSHIP is the right answer. Hope you checked the Video and try apply on your model




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Super User
Super User

You can . But all Date Collumns in the fact table to be connected with DateDim[Date] and status will inactive except one base Date Relation. If I understood your question correctly you need to use USERELATIONSHIP Function to get this! let me know if this is helpful




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


jx615k
Frequent Visitor

Thank you so much for your quick response Vijay,

 

To be honest I am still getting familiarized with PowerBI and DAX, so is there any way you can explain it in a nutshell?

 

Thanks in advance for your kind support!

https://www.sqlbi.com/articles/userelationship-in-calculated-columns/

Please try watching this Video. It will help you to understand the concept well

Also you can watch many DAX videos at www.youtube.com/perepavijay

Thanks and Regards




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


jx615k
Frequent Visitor

Thank you Vijay, I already suscribed to your channel!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors