Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
Within direct query mode, I get the following message trying to find a minimum transaction date:
Function 'MIN' is now allowed as part of a calculated column DAX expressions on DirectQuery models.
What is the alternative? I want calculate the difference between a workorder completion date and the first resource transaction date.
Thanks for your help!
Hi @Anonymous,
Based on my test, you could use "FIRSTNONBLANK" function to substitude the "MIN" function.
You could refer to below link:
https://msdn.microsoft.com/en-us/query-bi/dax/firstnonblank-function-dax
Reagards,
Daniel He
Hi Daniel,
Thanks for your post! Power BI direct query does not recognize the function FIRSTNONBLANK when I enter the function. Latest version which I installed is the August 2018 version. To complete my question: For each mfg order name (column A) I want to calculate the difference between completion date and first empl book date. In beneeth table you can make this date visible by selecting 'earliest first_empl_book_date' in the visualization of the table. However I want to calculate this date to compare it with the completion date for each mfg_order_name.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |