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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
mrguan007
New Member

Array Formula - Please Help

Hi everyone, 

 

I am trying to create an array formula in DAX that I can't seem to wrap my mind around. 

 

Here is what I currently have in excel - which I will explain the logic of what I am trying to do. 

 

 ABC  D
1ControlPhaseStatusStatus Adjusted
21.1-C-1Interim ICompleteIn Progess
31.1-C-1Interim IIIn ProgessIn Progess
41.1-C-2Interim ICompleteIn Progress
51.1-C-3Interim ICompleteComplete
61.1-C-3Interim IICompleteComplete

 

{=IFERROR(VLOOKUP(A2,IF($B$1:$B$6="Interim II",$A$1:$C$6,""),3,FALSE),"In Progress")}

 

The meat of the formula is in the red. I am currently running a Array Formula to achieve this in excel. 

 

So essentially, what I am trying to do is for the same control (i.e. 1.1-C-1), if the Interim II status isn't complete, or if the interim II status doesn't exist for a control, then that control should show as "in progress" for all instances. Once Interim II is completed, then both instances of the control will show as "Complete".

 

Please let me know! 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@mrguan007

 

Try with following column

 

Column =
IF (
    CONTAINS (
        FILTER ( Table1, [Control] = EARLIER ( [Control] ) && [Phase] = "Interim II" ),
        [Status], "Complete"
    ),
    "Complete",
    "In Progress"
)

 

or this one

 

Column 2 =
IF (
    CONTAINS (
        FILTER ( Table1, [Control] = EARLIER ( [Control] ) ),
        [Status], "Complete",
        [Phase], "Interim II"
    ),
    "Complete",
    "In Progress"
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@mrguan007

 

Try with following column

 

Column =
IF (
    CONTAINS (
        FILTER ( Table1, [Control] = EARLIER ( [Control] ) && [Phase] = "Interim II" ),
        [Status], "Complete"
    ),
    "Complete",
    "In Progress"
)

 

or this one

 

Column 2 =
IF (
    CONTAINS (
        FILTER ( Table1, [Control] = EARLIER ( [Control] ) ),
        [Status], "Complete",
        [Phase], "Interim II"
    ),
    "Complete",
    "In Progress"
)

@Zubair_Muhammad, thank you!!!!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.