- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MID and other Text functions randomly do unintentional capitalization
I added a simple custom column to a table. Using MID text function I get the values as of position 4 in the original column. An Example value could be "52 Bikes" which should lead to "Bikes".
This works fine mostly, but in some cases I get a capitalized value "BIKES" instead. This seems pretty random, for some column values it even depends on the number of characters I get from the original value, so MID("52 Bikes", 4, 3) might lead to "BIK", but MID("52 Bikes", 4, 5) becomes "Bikes". Is this intended behaviour and why??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please remember that for the most part Power BI / DAX is NOT case sensitive. If you have both "52 Bikes" and "40 BIKES" in your data then the function will randomly pick one of the spellings when it forcibly groups the results.
You can test that by simply creating a table like this
Note: Power Query is case sensitive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thnx that makes sense in this context and I was able to solve by adding the column in the query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please remember that for the most part Power BI / DAX is NOT case sensitive. If you have both "52 Bikes" and "40 BIKES" in your data then the function will randomly pick one of the spellings when it forcibly groups the results.
You can test that by simply creating a table like this
Note: Power Query is case sensitive.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
01-05-2025 06:48 PM | |||
12-15-2024 10:01 AM | |||
03-25-2025 06:59 AM | |||
08-01-2022 02:43 AM | |||
Anonymous
| 06-28-2016 09:49 AM |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |