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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lastnn30
Post Patron
Post Patron

Creating a measure on text table

Hi

I have a table called XYZ with one column called ABC. IN that column I have home addresses like this

 

SouthWest Road, 1234

 

So I want to write a measure to find the location of "," so I can use that number later to seprate the street name from street number. But PBI wont accept to create this measure

 

MyMeasure = search(" ", XYZ[ABC])

 

But I can create a "New Column" using the same above DAX formula. Why is that? Thank you so much.

1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

Hi @lastnn30 ,

 This is because a measure is normally used to do some type of aggregation and calculated column already has the row context to know what record you are referring to and does not require an aggregation like Sum, Max, etc. Here is some additional information: https://endjin.com/blog/2022/04/measures-vs-calculated-columns-in-dax


For the situation you describe, it seems like calculated column is the way to go.

View solution in original post

1 REPLY 1
djurecicK2
Super User
Super User

Hi @lastnn30 ,

 This is because a measure is normally used to do some type of aggregation and calculated column already has the row context to know what record you are referring to and does not require an aggregation like Sum, Max, etc. Here is some additional information: https://endjin.com/blog/2022/04/measures-vs-calculated-columns-in-dax


For the situation you describe, it seems like calculated column is the way to go.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.