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
Khomotjo
Helper II
Helper II

Filter(ALL not working

Hello everyone, 

 

I have this measure :

Picked_Orders = CALCULATE(
DISTINCTCOUNT(StockMovements[Reference]),
FILTER(ALL(StockMovements),
TRUNC(StockMovements[Finalised_Date]) = TRUNC(MAX(StockMovements[Required_Date]))
)
)
 
I get this error when refreshhing the data:
My source is a table I extracted from a database. I noticed that the filter function works well with the data but the moment I try to filter(ALL I get an OLE DB or DBC error
4 REPLIES 4
vanessafvg
Super User
Super User

please provide a screenshot of the with the exact message, when does the error happening on refreshing

 

is this an imported model or direct query?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Khomotjo_0-1737525578063.png

Hello Vanessa, this is a direct query

Hello Vanessa, I think I figured out what the issue is although I do not have the solution. I brought TRUNC(FinalisedDate) as a column and got this error : 

Khomotjo_1-1737526319101.png

 

what are you trying to do, convert the date to a date?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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!

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