cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
nuhasan
Helper IV
Helper IV

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])

nuhasan_0-1653037554115.png

 

Having this error

 

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

It has to be

Number.From

Hi @Vijay_A_Verma ,

 

Thank you so much!!!! Solved my issue

 

nuhasan_0-1653038046881.png

 

Regards,

Nuha

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors