Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Is there any way to set for Power BI Desktop to use Aaa and AAa as different values?
E.g. collation in SQL Server
Solved! Go to Solution.
We added custom column in Query to create distinct values for key field:
= Binary.ToText ( Text.ToBinary([campaignId]) ) & [campaignId]
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.
There is not any solution
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.
Proud to be a Super User!
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().
We added custom column in Query to create distinct values for key field:
= Binary.ToText ( Text.ToBinary([campaignId]) ) & [campaignId]
Can you use the EXACT function?
eg,
Measure 2 = EXACT("AAA","aaa")
returns FALSE
while
Measure 2 = EXACT("AAA","AAA")
returns TRUE
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |