Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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]
    )
) 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 10 | |
| 9 |