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
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
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.

Top Solution Authors
Top Kudoed Authors