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.
Dear all
I am trying to use DAX language to return the time of in the day which the total stock sold has reached or higher than stock_in (stock received) [i.e. the metric"%Sold_over_Recd" is 1 or above], in the below example, I wish to return "1:00:00PM" as the return value.
Would love to learn your advice on how this could be achieved with the use of the DAX language, thank you very much in advance!
If need any further clarification on the above question, please feel free to let me know, cheers.
Solved! Go to Solution.
FirstMinimumDateTimeWherePercentageIsOneOrMore =
CALCULATE(
MINX(
FILTER(
ADDCOLUMNS(
'Table',
"PercentageMeasure", [Percentage]
),
[PercentageMeasure] >= 0.01
),
'Table'[DateTime]
)
)
It works! Thank you very much aduguid !
Now I am able to identify the earliest time when stock is went out, thanks again!
FirstMinimumDateTimeWherePercentageIsOneOrMore =
CALCULATE(
MINX(
FILTER(
ADDCOLUMNS(
'Table',
"PercentageMeasure", [Percentage]
),
[PercentageMeasure] >= 0.01
),
'Table'[DateTime]
)
)
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 |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |