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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Summarise table to show last record using a calculated column

Hello,

 

I have quite a simple problem but I can't figure out a solution as the ones I've seen doing something similar revolve around using Power Query to group the table and then merge with original. However, in my situation I have a calculated column giving a true / false result for a series of IDs. It is possible for an ID to be flagged as false many times before becoming true (as seen in the table - ID 27392).

I would like to create a table where only the last record is used in the table per ID. Currently my output is the following:

 

Count of true = 61 (correct number)

Count of false = 280 (incorrect due to inclusion of records flagged false when last record was true)

Total unique IDs = 294

 

Picture of the table 

 

Sorry if I've explained it poorly, I'm still learning.

 

Cheers

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Are  you trying to get latest value of true or false for childID and lastest date for it?

 

If so, you can use the following summarize table:

 

 

Table2 = 
SUMMARIZE (
    'Table',
    'Table'[ChildID],
    "LAOfferCheck", LASTNONBLANK ( 'Table'[LAOfferCheck], 1 ),
    "LA_Offered_Date", LASTNONBLANK ( 'Table'[LA_Offered_Date], 1 )
)

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , last record basis not clear in your screenshot

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Pragati11
Super User
Super User

Hi @Anonymous ,

 

When you are moving your True/False column to the table visual, use LAST summarised option on this column to display. It will pick-up the last True/False for your ID.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi again,

 

Thanks for the quick response. I attached the date field corresponding to the true/false as seen in my screenshot link below. You can see that the all 'true' values are simply flags for when there is a date. I have then selected 'latest' on the visual summary, however, it is now ommitting all false records as they do not technically have a date.

 

Any ideas?

 

https://imgur.com/a/RvsVgM0

Hi @Anonymous ,

 

Are  you trying to get latest value of true or false for childID and lastest date for it?

 

If so, you can use the following summarize table:

 

 

Table2 = 
SUMMARIZE (
    'Table',
    'Table'[ChildID],
    "LAOfferCheck", LASTNONBLANK ( 'Table'[LAOfferCheck], 1 ),
    "LA_Offered_Date", LASTNONBLANK ( 'Table'[LA_Offered_Date], 1 )
)

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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