The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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êsUser | Count |
---|---|
70 | |
67 | |
63 | |
50 | |
28 |
User | Count |
---|---|
113 | |
77 | |
65 | |
55 | |
43 |