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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Cannot apply operator * to types Text and Number

 

 

Hi all,

 

I try to do below formulation but still getting error.

 

nuhasan_0-1653036492803.png

 

Step I already try

 

1. if[#"SAP_MMT_LV_MKPF_EN.D/C_SHKZG"]="H" then Value.Multiply([Quantity_MENGE],-1) else [Quantity_MENGE]

2. if[#"SAP_MMT_LV_MKPF_EN.D/C_SHKZG"]="H" then [Quantity_MENGE]*(-1) else [Quantity_MENGE]

3. I change the data type for [Quantity_MENGE] from number to text

 

Regards,

Nuha

 

 

 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Replace  [Quantity_MENGE] with

Number.From( [Quantity_MENGE])

View solution in original post

4 REPLIES 4
Vijay_A_Verma
Super User
Super User

Replace  [Quantity_MENGE] with

Number.From( [Quantity_MENGE])

Anonymous
Not applicable

nuhasan_0-1653037554115.png

 

Having this error

 

PQ is super sensitive to case. You have written number.from

It has to be

Number.From

Anonymous
Not applicable

Hi @Vijay_A_Verma ,

 

Thank you so much!!!! Solved my issue

 

nuhasan_0-1653038046881.png

 

Regards,

Nuha

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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