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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create new table with MIN date

I want to create a new table from my table with customerId and startdates which returns one row per customer with the minimum dat per customer. I've tried to use SELECTCOLMUNS and FILTER and I get a table with single customerId's but the minimum date is not calculated per customer but from the total. How can I get the minimum date per customer?

screenshot.png

1 ACCEPTED SOLUTION
ErikHamoen
Resolver I
Resolver I

Hey Ingrid,

 

You can try the following:

 

MinFvoorzieningTbvEerste=
SUMMARIZE (
    'FvoorzieningTbvEerste',
    'FvoorzieningTbvEerste'[NrClient],
    "ingang"MIN ( 'FvoorzieningTbvEerste'[Ingang] )
)

 

Kind regards

View solution in original post

4 REPLIES 4
ErikHamoen
Resolver I
Resolver I

Hey Ingrid,

 

You can try the following:

 

MinFvoorzieningTbvEerste=
SUMMARIZE (
    'FvoorzieningTbvEerste',
    'FvoorzieningTbvEerste'[NrClient],
    "ingang"MIN ( 'FvoorzieningTbvEerste'[Ingang] )
)

 

Kind regards

Anonymous
Not applicable

Thanks @ErikHamoen 🙏 this returns the values I needed.

AlB
Community Champion
Community Champion

Hi @Anonymous 

You could do something like:

New Table =
ADDCOLUMNS (
    DISTINCT ( Table1[NrClient] ),
    "DatumIngang", CALCULATE ( MIN ( Table1[Ingang] ) )
)

 You might have to filter the first argument of the ADDCOLUMNS. If you explain what the filter exactly does in your code (I don't see it completely), we can get to a more accurate answer

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

mahoneypat
Microsoft Employee
Microsoft Employee

I would make this table in the query editor with a Group By step.  Or you should use ADDCOLUMNS(SUMMARIZE(... instead of SELECTCOLUMNS which doesn't do any aggregation.

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors