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

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

Reply
filipkaczmarczy
New Member

Querry preparation failed

Hi all,

I am learning DAX and I have got a problem with Querry typed below:

EVALUATE
SUMMARIZECOLUMNS(
'Pick DC'[PDC Country],
'Pick DC'[PDC Number],
'Material'[MAT Business ID],
Customer[CS Customer Number],
Customer[CS Customer Description],
Material[MAT WRIN0],
Material[MAT Description],
Picking[Sales Order Key],
'Pick Date'[PD Date],
KEEPFILTERS( TREATAS( {"MCD","VAP","VGS","KFC"}, Material[MAT Business ID] )),
Filter('Pick Date','Pick Date'[PD Date]>=Today()),
Filter('Picking','Picking'[PCK Pick Order Status]=321),
Filter(VALUES(Material[MAT Business ID]),PATHCONTAINS(@MaterialMATBusinessID,Material[MAT Business ID])),
"Picked Planned Quantity",[Sales Order To Be Picked Quantity]
)

I am getting an error: Querry preparation failed

Do you know why this is happening? I am working on Power BI Report Builder

Thank you for help 🙂 

2 REPLIES 2
Anonymous
Not applicable

Hi @filipkaczmarczy ,

As checked the formula which you provided, it seems OK. I found a thread which has the similar problem as yours, please check if its solution can help you resolve the problem.

DAX Query fails to prepare

I copy pasted everything (queries + tablix) in a new blank report and that works. Maybe I switched a setting somewhere or the file was corrupted. I have no idea.

Anyway, now that works.


Best Regards

amitchandak
Super User
Super User

@filipkaczmarczy , Syntax looks correct , the way to check is, Run this on Dax studio


Start with one or two items and keep on adding after every successful, that should give you error

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.