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

View all the Fabric Data Days sessions on demand. View schedule

Reply
android1
Post Patron
Post Patron

Replace values in column if two criteria are met

Hi,

 

I'm looking to create a new calculated column Real Act Min. This will contain the vaues of column actualMinutes but if the values in actualMinutes *1.5 are greater than the corresponding values in column scheduledMinutes then the values in Real Act Min should = scheduledMinutes

 

Trying this with no luck -> Real Act Min = IF([actualMinutes]>[scheduledMinutes]&&[actualMinutes]*1.5 >[scheduledMinutes],[scheduledMinutes])

2 ACCEPTED SOLUTIONS
Habib
Continued Contributor
Continued Contributor

Hi @android1

 

What i understood from your statement, your formula should be like this and it should work. Sample is the table name of your table.

 

Real Act Min = IF('Sample'[actualMinutes]*1.5>'Sample'[scheduledMinutes ],'Sample'[scheduledMinutes ],'Sample'[actualMinutes])

View solution in original post

Habib
Continued Contributor
Continued Contributor

Try this one.

 

Real Act Min = IF('Sample'[actualMinutes]>'Sample'[scheduledMinutes ] && 'Sample'[actualMinutes]*1.5>'Sample'[scheduledMinutes ],'Sample'[scheduledMinutes ],'Sample'[actualMinutes])

View solution in original post

6 REPLIES 6
Habib
Continued Contributor
Continued Contributor

Hi @android1

 

What i understood from your statement, your formula should be like this and it should work. Sample is the table name of your table.

 

Real Act Min = IF('Sample'[actualMinutes]*1.5>'Sample'[scheduledMinutes ],'Sample'[scheduledMinutes ],'Sample'[actualMinutes])

That's great Habib, works perfectly.

 

Thank you.

I forgot one other thing. How would I amend this to incl the condition that if actualMinutes  < scheduledMinutes then Real Act Min = actualMinutes.

Habib
Continued Contributor
Continued Contributor

It can be included but what will be the else part. I mean what will be output of both conditions are false?

Hi Habib,

 

Output should be actualMinutes if both are false.

Habib
Continued Contributor
Continued Contributor

Try this one.

 

Real Act Min = IF('Sample'[actualMinutes]>'Sample'[scheduledMinutes ] && 'Sample'[actualMinutes]*1.5>'Sample'[scheduledMinutes ],'Sample'[scheduledMinutes ],'Sample'[actualMinutes])

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors