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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
flyguy
Regular Visitor

IFERROR in Dax

Hi - I am looking for help on convert formula below in DAX. Thank you so much!

 

IFERROR(IF(VLOOKUP(M4285,'Revenue Category Lookup'!$D:$G,2,FALSE),Q4285&"-"&M4285,"MISSING SPLIT BY"),IFERROR(IF(VLOOKUP(K4285,'Revenue Category Lookup'!$D:$G,3,FALSE),Q4285&"-"&K4285,"MISSING SPLIT BY"),IFERROR(IF(VLOOKUP(I4285,'Revenue Category Lookup'!$D:$G,4,FALSE),Q4285&"-"&I4285,"MISSING SPLIT BY"),Q4285&"-"&S4285)))

1 REPLY 1
foodd
Super User
Super User

Formatting Excel formula from this post for the reader:

=IFERROR(
    IF(
        VLOOKUP(
            M4285,
            'Revenue Category Lookup'!$D:$G,
            2,
            FALSE
        ),
        Q4285 & "-" & M4285,
        "MISSING SPLIT BY"
    ),
    IFERROR(
        IF(
            VLOOKUP(
                K4285,
                'Revenue Category Lookup'!$D:$G,
                3,
                FALSE
            ),
            Q4285 & "-" & K4285,
            "MISSING SPLIT BY"
        ),
        IFERROR(
            IF(
                VLOOKUP(
                    I4285,
                    'Revenue Category Lookup'!$D:$G,
                    4,
                    FALSE
                ),
                Q4285 & "-" & I4285,
                "MISSING SPLIT BY"
            ),
            Q4285 & "-" & S4285
        )
    )
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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