Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Solved! Go to Solution.
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.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |