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
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
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.