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
akhaliq7
Post Prodigy
Post Prodigy

Can a measure be used in a calculated column

I have a requirement whereby I need to get the start and end date from a date field. I have done this using two measures. Now I need to use the two measures in a if statement ideally in a calculated column but wanted to know if it can be done as I am getting all 0s even though I should have some 1s being returned.

 

My use case is comparing another date field to see whether it is in between the start and end dates. if it is return 1 else return 0

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@akhaliq7 , you should not measure in a column. Also you can not use slicer value in column

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

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

Yes, you can use measures in calculated columns but you need to be careful about filters. If the table you are adding the calculated column to filters the tables which the measures you are using evaluate then you may need to use REMOVEFILTERS if the measures should be looking at the entire dataset.

amitchandak
Super User
Super User

@akhaliq7 , you should not measure in a column. Also you can not use slicer value in column

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

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.