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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Get Earliest Date of a Group across several Tables

Hello everyone,

 

can you help me with the following topic?

I have two tables:

 

DimOutlet

OutletKeyOutletname
1Outlet1
2Outlet2
3Outlet3
4Outlet4

 

FactMessageDetails

MessageIdOutletKeyMessageCreationDate
1104-08-2022 13:00:00
2103-08-2022 13:00:00
3101-08-2022 13:30:00
4201-08-2022 13:00:00
5320-07-2022 13:00:00
6403-08-2022 13:00:00
7404-08-2022 13:00:00

 

 

What I need is the date where an Outlet sent their FIRST message. I was thinking about adding a column to the "DimOutlet" Table:

OutletKeyOutletnameFirstSentMessage
1Outlet101-08-2022 13:30:00
2Outlet201-08-2022 13:00:00
3Outlet320-07-2022 13:00:00
4Outlet403-08-2022 13:00:00

 

Can somebody help me creation this column?

Thanks a lot in advance 🙂

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Anonymous  you are absolutely right 🙂
Create this calculated column:

 

 

FirstSentMessagee = CALCULATE(MIN(FactMessageDetails[MessageCreationDate]))

 

 

 

Solution file to download:
Get Earliest Date of a Group across several Tables 2022-08-04.pbix


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report –Contosoo BySpartaBII

View solution in original post

4 REPLIES 4
SpartaBI
Community Champion
Community Champion

@Anonymous  you are absolutely right 🙂
Create this calculated column:

 

 

FirstSentMessagee = CALCULATE(MIN(FactMessageDetails[MessageCreationDate]))

 

 

 

Solution file to download:
Get Earliest Date of a Group across several Tables 2022-08-04.pbix


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report –Contosoo BySpartaBII

Anonymous
Not applicable

Hi @SpartaBI ,

WORKS! Thanks a million 🙂

 

Best,
Luisa

@Anonymous my pleasure :))

Do check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. Please give it a thumbs up over there if you liked it 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543

@Anonymous got your Kudos now.
my pleasure 🙂
Please don't forget to accept the previous message as a solution for community visibility.
P.S. Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. Please give it a thumbs up over there if you liked it 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.