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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
adrianvandiver
New Member

Trying to use lookupvalue function to match Sites with the state in Power BI

I have one query with sites with a unknown state, and another query with sites and states known. Im trying to use lookup to find the solution, but unfortunately am getting an error of lookup value does not support comparing values of type integer with values of type text. Consider using the value or format function to convert one of the values. ABS state actual = a two letter abbreviation, Store number is a series of 5 numbers, and site ID is a series of 5 numbers. Thank you!

adrianvandiver_0-1693506754229.png

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@adrianvandiver Either make sure that both your Store Number and Site ID are text or numbers. One of them is currently text and the other is a number. Or, you can always try adding & "" to the number column or + 0 to the text column in your formula.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
adrianvandiver
New Member

thank you, even though one of the columns was integers, it was marked as text in the format. This is whats been messing me up, thank you again!

Greg_Deckler
Community Champion
Community Champion

@adrianvandiver Either make sure that both your Store Number and Site ID are text or numbers. One of them is currently text and the other is a number. Or, you can always try adding & "" to the number column or + 0 to the text column in your formula.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.