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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
analystict
Helper I
Helper I

PowerBI Insists showing calculated column values in lowercase

Hey there!

 

So I have the following table:

 

name | email               | utm
Jim  | example1@gmail.com  | | utm_source=soc | utm_medium=facebook | utm_campaign=France
John | example2@gmail.com | | utm_source=soc | utm_medium=facebook | utm_campaign=Brazil
..

I have created an additional calculated column called UtmCampaign, which allows me to pull just the value of the utm_campaign. For example, out of the 1st row, it would only show "France", this is my calculated column:

 

IFERROR(MID(MID('MyLeads'[utm], FIND("utm_campaign", 'MyLeads'[utm], 1), FIND("|", 'MyLeads'[utm], FIND("utm_campaign", 'MyLeads'[utm], 1))-1 -FIND("utm_campaign", 'MyLeads'[utm], 1)), FIND("=", MID('MyLeads'[utm], FIND("utm_campaign", 'MyLeads'[utm], 1), FIND("|", 'MyLeads'[utm], FIND("utm_campaign", 'MyLeads'[utm], 1))-1 -FIND("utm_campaign", 'MyLeads'[utm], 1)), 1)+1, LEN(MID('MyLeads'[utm], FIND("utm_campaign", 'MyLeads'[utm], 1), FIND("|", 'MyLeads'[utm], FIND("utm_campaign", 'MyLeads'[utm], 1))-1 -FIND("utm_campaign", 'MyLeads'[utm], 1)))), "")

It works fine, the only issue is that for some strange reason, it outputs "France" as "france" (in lowercase).

 

I am not sure what could be causing the issue, would appreciate some assistance.

 

P.S.: My PowerBI Desktop version is the latest.

 

Thanks!

 

 

2 ACCEPTED SOLUTIONS
v-lili6-msft
Community Support
Community Support

hi, @analystict 

I have tested on my side, but not reproduce the issue.

9.JPG

Could you share your simple sample pbix file for us to have a test?

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

hi, @analystict 

You need to distinguish them in Power query, for example add an index.

Because of Case - insensitive in DAX.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

hi, @analystict 

I have tested on my side, but not reproduce the issue.

9.JPG

Could you share your simple sample pbix file for us to have a test?

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Thanks for the reply!

 

The issue is that there are utms with "france" also (in lowercase), and apparently PowerBI cannot tell the difference (that's what I assume and saw in other posts searching similar issues on Google).

 

Is there a way to overcome this so PowerBI will tell the difference between "France" and "france"?

HI, @analystict 

You could replace "France" with "france" in power query

16.JPG17.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hey there,

 

What if I have both though? Isn't there some workaround for PowerBI to tell the difference between lower & uppercase?

 

Thanks!

hi, @analystict 

You need to distinguish them in Power query, for example add an index.

Because of Case - insensitive in DAX.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors