cancel
Showing results for 
Search instead for 
Did you mean: 
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 Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors