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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.