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

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.

Reply
anileshknpowerb
Helper III
Helper III

How to show case insensitive data in powerbi

Hi,

 

I have a table EMPLOYEE that has 3 columns, ID, NAME and SALARY.

In Database I inserted 4 records as shown below.

 

ID                 NAME           SALARY

--------------------------------------

101               Employee      2000

102               eMployee      3000

103               EMPLOYEE     4000

104               employee       5000

 

When I create a report in powerbi desktop to show NAME and SALARY, it shows the NAME as "Employee" for all 4 rows. I want it to show as per Database. How to fix this issue?

 

Thanks

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @anileshknpowerb 

Infortunately, Power Bi and DAX are case insensitive.

you could use workaround from here https://blog.crossjoin.co.uk/2019/10/06/power-bi-and-case-sensitivity/

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

4 REPLIES 4
Coordin8
New Member

I think Chris Webb's BI Blog: Power BI And Case Sensitivity Chris Webb's BI Blog (crossjoin.co.uk) mentions that Power Query is case sensitive whereas DAX is not. So, for example, a table in Power Query will look like this:

Coordin8_0-1614089798988.png

However, within DAX, it looks like this:

Coordin8_1-1614089798990.png

From which you can see that DAX has ignored the change in case in rows 2 and 5.

amitchandak
Super User
Super User

Check the data in the import view. Is it in the same case as the database.

luapdoniv
Resolver II
Resolver II

Using the ID should resolve your issues. Can you share the output you are seeing now.

Maybe it's coz of the summarization level.

az38
Community Champion
Community Champion

Hi @anileshknpowerb 

Infortunately, Power Bi and DAX are case insensitive.

you could use workaround from here https://blog.crossjoin.co.uk/2019/10/06/power-bi-and-case-sensitivity/

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.