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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to get current filter selected date in calculated column

Hi All,

 

I have two tables,

1-DimDate

2-Services

 

There is no relationship between them because for DimDate i am using date in Slicer to return only rows of Services which exist from and To dates, and it is working fine.

 

The issue is in Services table i want to create one calculate column in which i want to return current selected date of slicer so that i can use it for further calculation.

I am using below Dax but it is returning Blank.

 

var selectedperiod = MONTH(SELECTEDVALUE(DimDate[Date]))
return selectedperiod
 
any clue for this?
1 ACCEPTED SOLUTION
Barthel
Solution Sage
Solution Sage

Hey @Anonymous,

A slicer selection does not affect calculated columns. A slicer selection only affects the visuals on your pages. If you want to write a certain calculation based on a slicer selection, you will have to process this in a measure, which you can then place in a visual. 

View solution in original post

1 REPLY 1
Barthel
Solution Sage
Solution Sage

Hey @Anonymous,

A slicer selection does not affect calculated columns. A slicer selection only affects the visuals on your pages. If you want to write a certain calculation based on a slicer selection, you will have to process this in a measure, which you can then place in a visual. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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