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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JeanMariePBI
Helper I
Helper I

Numeric and Alphanumeric data loaded into model as TEXT data type but are different in measure

Hello, BI seems to treat data loaded as Text data type differently based on whether the data being loaded as Text is numeric vs alphanumeric.

 

I have a measure that has 2 filters based on a Text data type:

JeanMariePBI_0-1651601421362.png

JeanMariePBI_1-1651601440721.png

 

When the prod id is numeric, the measure works correctly but the measure does not work if an alphanumeric prod id is loaded to model (prod id is always being loaded to model as Text data type)

JeanMariePBI_2-1651601473975.png

 

This is the complete logic for the measure:

JeanMariePBI_3-1651601495565.png

 

If both prod ids are being loaded as a Text data type why does the measure work for the numeric prod id and not for the alphanumeric?

 

 

1 ACCEPTED SOLUTION

Hello parry2k,  

Filter has been added so that the slope calculation is only using rows with the same product id.   I'm fairly new to BI and there is probably a better approach.....

View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@JeanMariePBI Glad to hear it worked. I would recommend accepting an actual reply as a solution so that others can easily find it. Just a recommendation.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@JeanMariePBI if you have product id in a visual, you don't know to put that filter condition in your dax expression, remove that and in a table visual, put product id column and your measure and it should work.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you, parry2k.   I've removed the filters and the measures work properly.   Now I understand that the filters were not needed in the dax because the table would automatically filter what I needed.   Thanks again!

parry2k
Super User
Super User

@JeanMariePBI what you are trying to achieve by applying that FILTER condition?

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hello parry2k,  

Filter has been added so that the slope calculation is only using rows with the same product id.   I'm fairly new to BI and there is probably a better approach.....

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors