Join 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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I am trying to create a measure to find the earliest date where the quantity is <> 0. Below is the example, lets call the table InventoryActivity. The data I am combing through is a direct query, so I can't create a calculated column.
My Expected results would be EarliestDate = 2/3/2019.
Thank you,
Noel
Solved! Go to Solution.
Hi @NBOnecall ,
Try the following measure:
First date = CALCULATE ( FIRSTNONBLANK ( 'Table'[Date]; 0 ); FILTER ( ALL ( 'Table'[Quantity] ); 'Table'[Quantity] <> 0 ) )
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @NBOnecall ,
Try the following measure:
First date = CALCULATE ( FIRSTNONBLANK ( 'Table'[Date]; 0 ); FILTER ( ALL ( 'Table'[Quantity] ); 'Table'[Quantity] <> 0 ) )
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português