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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
razant
New Member

Data import from Access incorrect IIf processing

We have a very simple query in access which has an expr with an IIf statement.
The query processing in Access is correct, but when imported to Excel, it's processed wrong with the wrong results.
The results in Access are correct, but when excel is processing it, it's only returning the else result.

I know this can be achieved another way, but I'd like to know why this is doing that and if it can be fixed as is

query.pngresult in Access.pngresult in excel.png

1 ACCEPTED SOLUTION
razant
New Member

Found the solution to my own problem.

Query needs to be in ANSI 92 syntax to work on both platforms. Excel power query doesn't see * as a wild card, it needs %

Replacing * with % will help it work in excel but not in Access

Replacing the syntax in full like this Expr3: IIf([Field1] ALike "Rt%","-1","2") resolves on both 

 

I hope this helps someone

View solution in original post

1 REPLY 1
razant
New Member

Found the solution to my own problem.

Query needs to be in ANSI 92 syntax to work on both platforms. Excel power query doesn't see * as a wild card, it needs %

Replacing * with % will help it work in excel but not in Access

Replacing the syntax in full like this Expr3: IIf([Field1] ALike "Rt%","-1","2") resolves on both 

 

I hope this helps someone

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors