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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
MarcSim
New Member

Correct data in a calculated column

Hi there, 

 

I'm working with a column that has multiple key/value pairs which has inconsistant entries, i.e. not all rows have the same key/values. I have a calculated column based on this that extracts one of the pairs nicely, however there are occurances of spelling mistakes in the values. Is there a way to correct these spelling mistakes, or normalize the data, from the calculated column?

 

Here is an example of the original column:

MarcSim_0-1700612095388.png

And my calculated column looks like this:

MarcSim_1-1700612258836.png

And the values look like this:

MarcSim_2-1700612324800.png

I see there are a number of posts and tutorials about fixing data, but none seem to do this with a calculated column. Also, in visualizations, I'd like to use the fixed column to filter charts (as a drop down)  so I believe I'm unable to use a measure to achieve my intended result.

 

Any assistance is appreciated.

Cheers,

Marc

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Data cleaning should be done as far upstram as is possible.  If it is not possible to make such spelling corrections in the source dataset, then one should do so in Power Query.  If you are amenable to my approach, then share some data to work with and in a spare column, show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I appreciate your response. The data is coming from Azure Cost Management and the field in question is tagged with the data at time of charge. So you see there is no way to retrospectively fix the data at the source for past charges. As for Power Query, yes you can make changes there but you cannot work with a calculated column in Power Query can you?

 

Cheers,

Marc

We can write formulas in a column using Power Query.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.