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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ambillate
Frequent Visitor

Add column that will display the first / new load date that the row appeared

Hi Good Day,

I have this table that shows ID, Load Date, Product # and Section.

ambillate_0-1626084449936.png

 

I want to add a column that will display the first load date that the row appeared, but if the row will not appear on the next load date (or will skip a date) and will apear again on the next-next load date, the date that must appear is the new load date.

 

This is my desired output:

ambillate_1-1626084914519.png

 

I tried using this measure,

 

Date Appeared =
VAR firstload = Sheet1[Load Date]
VAR mindate = CALCULATE(MIN(Sheet1[Load Date]), ALLEXCEPT((Sheet1), Sheet1[Product No], Sheet1[Section]))
RETURN
IF(Sheet1[Load Date] = CALCULATE(MIN(Sheet1[Load Date]), ALLEXCEPT((Sheet1), Sheet1[Product No], Sheet1[Section])), firstload, mindate)

 

and I got this result,

ambillate_2-1626085162206.png

 

I find it hard to display the new load date.

 

Hope that you help me with this.

 

Thanks a lot..

1 ACCEPTED SOLUTION

 

Link to the revised PBIX file 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

4 REPLIES 4
ambillate
Frequent Visitor

Hi @Jihwan_Kim

I tried to use your measure, it already works now in rows 17.

But when I add new rows, the date that will display is still the min date. 

ambillate_0-1626108271282.png

 

Is there any way to come up with this output (kindly see sample output below)?

ambillate_1-1626108708117.png

 

Thanks a lot for helping me Sir.

 

Link to the revised PBIX file 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Hi @Jihwan_Kim, I really appreciate the time you spent for helping me. 

 

Thank You So much Sir.

 

Jihwan_Kim
Super User
Super User

Link to the PBIX file 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors