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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

calculated column error?

Hi

 

how to write  below query with out errors

 

column = if (Table1[state]=''Closed" && Table1[Date]<today() -14)

 

Error: Too few agruments were passed to the IF function . the minimum arguement count for the function is 2

 

Can you please assist?

 

Thanks

Kunuthuri

 

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

I can also see there is one argument i.e the logical test

You should specify the result too if the logic is met

 

IF(logical_test>,<value_if_true>, value_if_false) 

 

column = if (Table1[state]=''Closed" && Table1[Date]<today() -14,_____________)

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

I can also see there is one argument i.e the logical test

You should specify the result too if the logic is met

 

IF(logical_test>,<value_if_true>, value_if_false) 

 

column = if (Table1[state]=''Closed" && Table1[Date]<today() -14,_____________)

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors