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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AB-Learner
Frequent Visitor

Report based on earliest date (year)

I have a table with a reference field (multiple values).  For each record, there is a date field.  The date field, for the same value of a reference field, can have different values.

 

Example:

 

Reference fieldDate
A1232022-03-17
A1232022-05-15
A1232023-09-14
A1232024-01-25
A1232024-02-18
A0582021-07-15
A9822024-04-23
A5872022-03-21
A9822024-03-28
A5872024-01-15

 

I want to have a report that shows me for each "reference field" value, the first year in which it appeared.  And then a total per year.  Based on the above table, the output would be as follows:

 

Reference field2021202220232024
A0581   
A123 1  
A587 1  
A982   1
TOTALS12 1

 

Being a newbie in PowerBI related queries/tables/reports, the above simple need is working out to be quite difficult for me.  Any help towards this is appreciated.

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

Thanks.

 

This solution works well.  Of course, I have not fully understood the logic but that is because I do not know fully well what does the various functions (SUMX, SUMMARIZE, ...) do.  I will do my self-reading to understand those functions - but I confirm that your proposed solution works well for my need.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.