cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mellyVK Member
Member

error argument '3' in if function is required

Can advice on the error "error argument '3' in if function is required"

Did i missed out anything.

thank you.

 

Date = 
IF (
AND (
'Mydata'[Date] >= DATE ( 2014, 7, 1 ),
'Mydata'[Date] <= DATE ( 2015, 6, 31 )
),
"FY14",
IF (
AND (
'Mydata'[Date] >= DATE ( 2015, 7, 1 ),
'Mydata'[Date] <= DATE ( 2016, 6, 31 )
),
"FY15",
IF (
AND (
'Mydata'[Date] >= DATE ( 2016, 7, 1 ),
'Mydata'[Date]<= DATE ( 2017, 6, 31 )
),
"FY16",
IF (
AND (
'Mydata'[Date]>= DATE ( 2017, 7 1 ),
'Mydata'[Date] >= DATE ( 2018, 6, 31 )
),
"FY17",
)
)))

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisMendoza Senior Member
Senior Member

Re: error argument '3' in if function is required


@mellyVK wrote:

Can advice on the error "error argument '3' in if function is required"

Did i missed out anything.

thank you.

 

Date = 
IF (
AND (
'Mydata'[Date] >= DATE ( 2014, 7, 1 ),
'Mydata'[Date] <= DATE ( 2015, 6, 31 )
),
"FY14",
IF (
AND (
'Mydata'[Date] >= DATE ( 2015, 7, 1 ),
'Mydata'[Date] <= DATE ( 2016, 6, 31 )
),
"FY15",
IF (
AND (
'Mydata'[Date] >= DATE ( 2016, 7, 1 ),
'Mydata'[Date]<= DATE ( 2017, 6, 31 )
),
"FY16",
IF (
AND (
'Mydata'[Date]>= DATE ( 2017, 7 1 ),
'Mydata'[Date] >= DATE ( 2018, 6, 31 )
),
"FY17", // <- THIS COMMA IS NOT NECESSARY
)
)))


Column =
IF (
    AND (
        'Mydata'[Date] >= DATE ( 2014, 7, 1 ),
        'Mydata'[Date] <= DATE ( 2015, 6, 31 )
    ),
    "FY14",
    IF (
        AND (
            'Mydata'[Date] >= DATE ( 2015, 7, 1 ),
            'Mydata'[Date] <= DATE ( 2016, 6, 31 )
        ),
        "FY15",
        IF (
            AND (
                'Mydata'[Date] >= DATE ( 2016, 7, 1 ),
                'Mydata'[Date] <= DATE ( 2017, 6, 31 )
            ),
            "FY16",
            IF (
                AND (
                    'Mydata'[Date] >= DATE ( 2017, 7, 1 ),
                    'Mydata'[Date] >= DATE ( 2018, 6, 31 )
                ),
                "FY17"
            )
        )
    )
)
1 REPLY 1
ChrisMendoza Senior Member
Senior Member

Re: error argument '3' in if function is required


@mellyVK wrote:

Can advice on the error "error argument '3' in if function is required"

Did i missed out anything.

thank you.

 

Date = 
IF (
AND (
'Mydata'[Date] >= DATE ( 2014, 7, 1 ),
'Mydata'[Date] <= DATE ( 2015, 6, 31 )
),
"FY14",
IF (
AND (
'Mydata'[Date] >= DATE ( 2015, 7, 1 ),
'Mydata'[Date] <= DATE ( 2016, 6, 31 )
),
"FY15",
IF (
AND (
'Mydata'[Date] >= DATE ( 2016, 7, 1 ),
'Mydata'[Date]<= DATE ( 2017, 6, 31 )
),
"FY16",
IF (
AND (
'Mydata'[Date]>= DATE ( 2017, 7 1 ),
'Mydata'[Date] >= DATE ( 2018, 6, 31 )
),
"FY17", // <- THIS COMMA IS NOT NECESSARY
)
)))


Column =
IF (
    AND (
        'Mydata'[Date] >= DATE ( 2014, 7, 1 ),
        'Mydata'[Date] <= DATE ( 2015, 6, 31 )
    ),
    "FY14",
    IF (
        AND (
            'Mydata'[Date] >= DATE ( 2015, 7, 1 ),
            'Mydata'[Date] <= DATE ( 2016, 6, 31 )
        ),
        "FY15",
        IF (
            AND (
                'Mydata'[Date] >= DATE ( 2016, 7, 1 ),
                'Mydata'[Date] <= DATE ( 2017, 6, 31 )
            ),
            "FY16",
            IF (
                AND (
                    'Mydata'[Date] >= DATE ( 2017, 7, 1 ),
                    'Mydata'[Date] >= DATE ( 2018, 6, 31 )
                ),
                "FY17"
            )
        )
    )
)

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 268 members 3,091 guests
Please welcome our newest community members: