Showing results for 
Search instead for 
Did you mean: 
Melmehal Frequent Visitor
Frequent Visitor

Find the first log of a specific status

Hi everyone, 


Im fairly new to PowerBi. I was hoping someone can help guide me to how I can do the following: 



I have a table called "Quote log" this table look like this: 




I have another table called filtered quote that looks fairly similar.



I am trying to record the first instance of a Quote log with a specific status "7"  and filter that by the date. Problem is a "quote" can go through the status 7 on different dates. But i need to find the first time it went through that specific status "7", not all the ones that followed. the "created at" column gives me the date in which a quotelog was entered into the system. However thats not helpful because it wouldnt show me if any of those "quotes" with a status "7" were the first or if this status "7" is repeated with that same "quote" Basically i need PowerBi to go through the quote log table and on any day i choose to filter (guess i might need a main date table) it would go and look through all the past quotelogs, see if any of today's "quotes" had a prior status "7", if that is true, then discard those and only return the "quotes" that are recorded where "status" = "7" is the first time it recieves that status 


In the above tables: 


"status" is my status table that has numbers from 1-15 

"quote" is the quoteID 

"id" is the quotelogID 


Any guidance is sincerely appreciated! Thanks in advance. 

AClerk New Contributor
New Contributor

Re: Find the first log of a specific status

Hi @Melmehal 

Please give a sample data and expected results.

It will help to understand your challenge and provide the best solution.


Community Support Team
Community Support Team

Re: Find the first log of a specific status

Hi @Melmehal ,


you can try to create Column like DAX below.


Column1= CALCULATE ( FIRSTNONBLANK (quotelog[quote], 1 ), FILTER ( ALLSELECTED(quotelog), quotelog[status]= "7"&&quotelog[createdAt]= MIN(quotelog[createdAt])))


If I misunderstood it, could you please share your sample data or desired output screenshots for further analysis, you can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.


Best Regards,



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


Helpful resources

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 505 members 4,528 guests
Please welcome our newest community members: