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
ajeets
Frequent Visitor

Help with Calculated Column

Hi All,

Need youe expertise in solving a problem

I have 2 Tables - Lets call them Table A and Table B

Table A has records with a date column called as Date_Created. 

Table B is simple calandar Date entries which are unique.

Both Tables are not linked with each other as am using Table B only to create a slicer to get user input. Lets call this user input as Selected_Date

 

All i want to do is to have calculated column in Table A, which should say "Yes" if Table A[Date_Created] > Selected_Date

 

I tired fetching value of Slicer in a measure as Selected_Date = selectedvalue(Table B[Date]), but doesnt work. However if i enter a constant value Selected_Date = Date(2020,01,01), the calculated column works. But i want user to be able to input date on report.

How do i do this please.

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @ajeets 

 

The only way you can do it is with the use of Measure as, as columns are not dynamic and refresh on load only.

Measure = SELECTEDVALUE( table[Date] ) > SELECTEDVALUE( slicertable[Date] )

and place it in the visual

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @ajeets 

 

The only way you can do it is with the use of Measure as, as columns are not dynamic and refresh on load only.

Measure = SELECTEDVALUE( table[Date] ) > SELECTEDVALUE( slicertable[Date] )

and place it in the visual

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

This was awesome.. Much appreciated. Instead of column now i have used this measure in visual' filter and got what i wanted..

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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