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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
chiru5262
Helper III
Helper III

Cannot convert value " of type text to number

chiru5262_0-1726191683585.png

Can anyone please advise how to solve this

 


Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @chiru5262 ,

 

First of all thanks to Ashish_Mathur  for the quick reply and solution. I have some other ideas for you to consider:

(1) This is my test data. 

vtangjiemsft_0-1726456649728.png

(2) You can use the following DAX:

Table 2 = 
VAR Table2 =
    SELECTCOLUMNS (
        FILTER ( FACT_WORKORDER, [ORIGRECORDID] <> BLANK () ),
        "Wo num table1", VALUE ( 'FACT_WORKORDER'[ORIGRECORDID] ),
        "Wo num table2", VALUE ( 'FACT_WORKORDER'[Wonum] )
    )
RETURN
    Table2

(3) Then the result is as follows.

vtangjiemsft_1-1726458258167.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @chiru5262 ,

 

First of all thanks to Ashish_Mathur  for the quick reply and solution. I have some other ideas for you to consider:

(1) This is my test data. 

vtangjiemsft_0-1726456649728.png

(2) You can use the following DAX:

Table 2 = 
VAR Table2 =
    SELECTCOLUMNS (
        FILTER ( FACT_WORKORDER, [ORIGRECORDID] <> BLANK () ),
        "Wo num table1", VALUE ( 'FACT_WORKORDER'[ORIGRECORDID] ),
        "Wo num table2", VALUE ( 'FACT_WORKORDER'[Wonum] )
    )
RETURN
    Table2

(3) Then the result is as follows.

vtangjiemsft_1-1726458258167.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Ashish_Mathur
Super User
Super User

Hi,

In the Power Query Editor, ensure that the data type of the Wonum and Origrecordid columns is number.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.