cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Power BI Desktop thinks "Aaa" and "aaA" is equals

Is there any way to set for Power BI Desktop to use Aaa and AAa as different values?

E.g. collation in SQL Server

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper III
Helper III

Re: Power BI Desktop thinks "Aaa" and "aaA" is equals

We added custom column in Query to create distinct values for key field:

= Binary.ToText ( Text.ToBinary([campaignId]) ) & [campaignId]

View solution in original post

6 REPLIES 6
Highlighted
Responsive Resident
Responsive Resident

Re: Power BI Desktop thinks "Aaa" and "aaA" is equals

You can read more about this here https://dennyglee.com/2010/06/18/powerpivot-you-are-so-insensitive-case-that-is/

The article also contains some workarounds.

Highlighted
Helper III
Helper III

Re: Power BI Desktop thinks "Aaa" and "aaA" is equals

There is not any solution

Highlighted
Microsoft
Microsoft

Re: Power BI Desktop thinks "Aaa" and "aaA" is equals

Can you use the EXACT function?

 

eg, 

 

Measure 2 = EXACT("AAA","aaa")

returns FALSE

 

while 

 

Measure 2 = EXACT("AAA","AAA")

returns TRUE


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Highlighted
Super User I
Super User I

Re: Power BI Desktop thinks "Aaa" and "aaA" is equals

It would help to know if you're having trouble with case sensitivity in a query or in a DAX formula. The solutions for each will be completely different.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Responsive Resident
Responsive Resident

Re: Power BI Desktop thinks "Aaa" and "aaA" is equals

Just to aid the conversation whomever is interested to reproduce the problem, try applying the following query

=#table(null,{{"aaa"},{"AAA"},{"aAa"}})

and check your results in either data model or the report view.

 

As per initial question from @googlogmob there is no such thing as collation in Power Query/Pivot that would be obvious to apply.

 

If the columns with Aaa and aaA are not meant for reporting I would suggest transforming their contents in Power Query to binary Text.ToBinary(). 

 

Highlighted
Helper III
Helper III

Re: Power BI Desktop thinks "Aaa" and "aaA" is equals

We added custom column in Query to create distinct values for key field:

= Binary.ToText ( Text.ToBinary([campaignId]) ) & [campaignId]

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors