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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I am faced with a challenge of getting the earliest date of a measure in powerbi, since it is a measure i am not able to proceed without column references.
This is a sample dataset,
| Apps | Total | Count | Running Count | Percent Covered | Target Reached(>85%) | Date | Earliest Date |
| 111 | 60 | 47 | 47 | 78% | No | 10/12/2021 | 15/12/2021 |
| 111 | 60 | 3 | 50 | 83% | No | 13/12/2021 | 15/12/2021 |
| 111 | 60 | 9 | 59 | 98% | Yes | 15/12/2021 | 15/12/2021 |
| 111 | 60 | 1 | 60 | 100% | Yes | 17/12/2021 | 15/12/2021 |
| 124 | 34 | 27 | 27 | 79% | No | 19/12/2021 | 21/12/2021 |
| 124 | 34 | 3 | 30 | 88% | Yes | 21/12/2021 | 21/12/2021 |
| 124 | 34 | 2 | 32 | 94% | Yes | 23/12/2021 | 21/12/2021 |
Here, except for App Code, Count, Date, all the other fields are measures. Earliest Date is the field that i wish to calculate
Earliest date is the first date when a running total count specific to an app crosses the 85% threshold.
Solved! Go to Solution.
Does it have to be measures? These facts seem to be immutable (not impacted by user filter choices) so calculated columns should be sufficient.
Percent Covered =
var a = [Apps]
var d = [Date]
return divide(calculate(sum('App Progress'[Count]),ALL('App Progress'),'App Progress'[Apps]=a,'App Progress'[Date]<=d),[Total])
Earliest Date =
var a = [Apps]
return calculate(minx('App Progress','App Progress'[Date]),ALL('App Progress'),'App Progress'[Apps]=a,'App Progress'[Percent Covered]>=0.85)
see attached.
Thanks, you are right. Calculated columns helped me to solve this
Does it have to be measures? These facts seem to be immutable (not impacted by user filter choices) so calculated columns should be sufficient.
Percent Covered =
var a = [Apps]
var d = [Date]
return divide(calculate(sum('App Progress'[Count]),ALL('App Progress'),'App Progress'[Apps]=a,'App Progress'[Date]<=d),[Total])
Earliest Date =
var a = [Apps]
return calculate(minx('App Progress','App Progress'[Date]),ALL('App Progress'),'App Progress'[Apps]=a,'App Progress'[Percent Covered]>=0.85)
see attached.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 108 | |
| 39 | |
| 34 | |
| 27 |