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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
teinoB
Frequent Visitor

Multiplication of 2 variables into a new variable under consideration of a filter - how to do that?

Hello 

 

I have:

Var 1 (numeric, column): satisfation scores between "1" to "10", plus "99" = no answer

Var 2 (numeric, column): wighting scores, numeric values for each row/individual between 0.1 and 1.9

 

I need:

NEW Var ( conditional new column, numeric), which has to contain:

Procuct "Var 1" * "Var 2", except where "Var 1 = 99" --> then "NEW Var" = null  

 

Can anybody describe me the most efficient way to create exactly this NEW Var in the data editor view?

 

Cheers,

teinoB

1 ACCEPTED SOLUTION

@amitchandak 

Thanks. Yoursolution doesn't work, it produces an error "expected token: eof".

I tried a little bit around and came to this solution, it might probaly interest you:

 

NEW_Var=

if ([#"D05_1 : How satisfied are you?"]=99) then ("") else [weight]*[#"D05_1 : How satisfied are you?"]

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@teinoB , if they are two column

a new column in DAX

=

if([Var 1]  =99 , [Var 1] *[var 2] , blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Thanks. Yoursolution doesn't work, it produces an error "expected token: eof".

I tried a little bit around and came to this solution, it might probaly interest you:

 

NEW_Var=

if ([#"D05_1 : How satisfied are you?"]=99) then ("") else [weight]*[#"D05_1 : How satisfied are you?"]

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.