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! Request now

Reply
olimilo
Continued Contributor
Continued Contributor

Bug or normal? Value following casing of first instance of the same value

This came up today, I have a query with the following test data:

 

IDName
1TEST
2Test
3Test
4test
5TEST

 

When loaded to a table visual, it looks like this:

olimilo_0-1671523701836.png

I tried it with another test table where the first value is "test" and "tEst" instead of "TEST" and the output is the same:

olimilo_1-1671524500078.png

olimilo_2-1671524587175.png

 

Is this a bug or is this normal behavior? No summarization or other steps were run in the queries to create the tables.

 

1 ACCEPTED SOLUTION
TomasAndersson
Solution Sage
Solution Sage

Hi!
It's not a bug. DAX is case-insensitive and treats strings with the same characters, not matter their case, as equal. 

So if TEST is the first string in a column with, T, E, S, T, all following strings will also be TEST no matter if they're loaded as TeST, test, tesT or something else.

 

You can read more about it here: Letter case-sensitivity in DAX, Power BI and Analysis Services - SQLBI  

View solution in original post

4 REPLIES 4
TomasAndersson
Solution Sage
Solution Sage

Hi!
It's not a bug. DAX is case-insensitive and treats strings with the same characters, not matter their case, as equal. 

So if TEST is the first string in a column with, T, E, S, T, all following strings will also be TEST no matter if they're loaded as TeST, test, tesT or something else.

 

You can read more about it here: Letter case-sensitivity in DAX, Power BI and Analysis Services - SQLBI  

Thanks @TomasAndersson @Greg_Deckler 

I thought I would be able to fix this by pulling the case-sensitive data from a different table but it looks like the behavior is still the same.

 

Is there any other way to approach this? We are getting the data from dataflows so we are unable to set case-sensitive collation.

@olimilo @TomasAndersson This is not 100% a DAX thing, the SSAS Tabular data model is case insensitive. Here is a blog article on one way of getting around this. Chris Webb's BI Blog: Power BI And Case Sensitivity Chris Webb's BI Blog (crossjoin.co.uk)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Community Champion
Community Champion

@olimilo Unfortunately this is normal behavior. The data model in Power BI is set to ignore casing so TEST is the same as Test is the same as test is the same as tEst as far as Power BI and DAX are concerned.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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