The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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