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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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