Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Txtcher
Helper V
Helper V

Measure to find Min date in filtered table within group

I am trying to use dax to find the min created date within the ParentID group for NewValue = [Approved] (actually I will need the min date for all of the different values in the NewValue column for each ParentID group.

PQ editor makes it easy to aggregate data, but there are too many records and it takes hours. 

I am quite new to PBi/DAX. I have used DAX a wee bit in the Excel Data Model, but nothing fancy. 

Here is a screen shot of the model (I created a date table for the FY we need data for.)

Txtcher_0-1744820480560.png

 

For each different value in the NewValue column, I need to find the min date. Then I want to add that to my report table.

I tried this:

License Issued = CALCULATE(
    Min([CreatedDate]),
            ALLEXCEPT('HX','HX'[ParentId]))
But when I add that to the report table, it repeats the data in in the first 2 columns that come from the NFA Apps table, and the Submitted and Paid that comes from the FEES table, and I haven't checked if that is correct. And the data in the License Issued is all the same date. 😞 
Txtcher_1-1744820771838.png

 

1 ACCEPTED SOLUTION
Txtcher
Helper V
Helper V

Solved it!

License Issued = CALCULATE(
    Min([CreatedDate]),
    FILTER(HX,[NewValue]="Approved"),
            ALLEXCEPT('HX','HX'[ParentId]))

View solution in original post

1 REPLY 1
Txtcher
Helper V
Helper V

Solved it!

License Issued = CALCULATE(
    Min([CreatedDate]),
    FILTER(HX,[NewValue]="Approved"),
            ALLEXCEPT('HX','HX'[ParentId]))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.