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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.