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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Naz
Regular Visitor

Find first appearance of a value and make a table

I have a huge table of patients for the last 6 months or so. I want to find out who are brand new patients last month or the month before. It should be pretty straight forward but can't really get it. Thank you so much in advance for your help.

 
 
2 REPLIES 2
Naz
Regular Visitor

PowerBI help request.JPG

Anonymous
Not applicable

Hi @Naz Please try below code

Table = SUMMARIZECOLUMNS(Data[Patient],"FirstDate",MIN(Data[Date]),"Medicine",CALCULATE(MAX(Data[Medicine]),FILTER(Data,Data[Date]=MIN(Data[Date]))))

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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