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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Summarize dates without blanks

Hi all,

 

I need help with the following dax. I am creating a table that summerizes the latest dates by id. This works well however I have blank dates. How can I get the latest dates where the id has no blank dates against it?

 

 

MaxID = SUMMARIZE(table1,table1[Id],"LastEntryDate",max(table1[date]))
 
 
1 ACCEPTED SOLUTION

@Anonymous hi

I have written simple dax similar to your dax except i have applied filter which remove blank dates rows. 

It have worked for me. 

 

table2 = SUMMARIZE(FILTER(Table1,Table1[DATE] <> BLANK()),Table1[ID],"MAX DATE",MAX(Table1[DATE]))

 

Regards,

Novil

If I answer you question, please mark my post as solution.

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hey @Anonymous 

There are many options.

For example.

For Example.

 

Cheers!
A

vivran22
Community Champion
Community Champion

Hi,

Is it possible for you to share some sample table and the desired output?

Rgds,
Vivek
Anonymous
Not applicable

IdLastEntryDate
1123/05/2019 0:00
1223/05/2019 0:00
1323/05/2019 0:00
2424/05/2019 0:00
2524/05/2019 0:00
26 
49 
50 
5131/05/2019 0:00
528/06/2019 0:00
5511/06/2019 0:00

@Anonymous hi

I have written simple dax similar to your dax except i have applied filter which remove blank dates rows. 

It have worked for me. 

 

table2 = SUMMARIZE(FILTER(Table1,Table1[DATE] <> BLANK()),Table1[ID],"MAX DATE",MAX(Table1[DATE]))

 

Regards,

Novil

If I answer you question, please mark my post as solution.

Hi 

If the other column other than the summerized need also to be Non-Blank for example in our case (Table1[ID]) how can we do that? 

Try this-

 

table2 = SUMMARIZE(FILTER(Table1,Table1[DATE] <> BLANK() && Table1[ID]<>BLANK()),Table1[ID],"MAX DATE",MAX(Table1[DATE]))

 

Regards,

Novil

If I answer your question, please mark my post as a solution.

Hey,

 

I use this kind of DAX statement:

Table = 
FILTER(
    ADDCOLUMNS( 
        SUMMARIZE(
            VALUES(Table1[Id])
            , Table1[Id]
        )
        , "the latest date" , CALCULATE(LASTNONBLANK('Table1'[LastEntryDate] , MAX('Table1'[LastEntryDate]) ))
    )
    , [the latest date] <> BLANK()
)

This creates a table like this:

image.png

As you can see from the screenshot from above, there really are no blank rows 🙂

 

You have to be aware that you have to use TREATAS(...) if you want to use the summarized table as a table filter, as the calculation of the last date breaks the lineage to the column [LastEntryDate] like so:

 

a measure = 
var thesummarizedtable = ...
return
CALCULATE(
...
, TREATAS(<thesummarizedtable> , '<the table name>'[Id] , '<the table name>'[LastEntryDate])
)

Hopefully this is what you are looking for.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.