Forum Discussion
error in visual studio tabolar mode
Hello,
I new in Visual studio and powerBI.
I have a function like this:
"Naziv Firme = LOOKUPVALUE('DW ORGANIZACIJA'[NAZIV_FIRMA_PP];'DW ORGANIZACIJA'[ID];PATHITEM('DW ORGANIZACIJA'[Pot];2))"
Now I work in Visual Studio 2019 and Analysis Services Tabular Project, and if I like this formula in Visual is error 'Function 'LOOKUPVALUE' 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.'
what is the solution?
thanks, Lea
Hi LeaRupnik ,
I think the issue here is the format of both the columns in LOOKUPVALUE function.
In your data, do the following columns have same data format:
- 'DW ORGANIZACIJA'[ID]
- 'DW ORGANIZACIJA'[Pot]
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
1 Reply
- Pragati11
Super User
Hi LeaRupnik ,
I think the issue here is the format of both the columns in LOOKUPVALUE function.
In your data, do the following columns have same data format:
- 'DW ORGANIZACIJA'[ID]
- 'DW ORGANIZACIJA'[Pot]
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati