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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
lulubrinki
Regular Visitor

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

@lulubrinki  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

@lulubrinki  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

Hi @SpartaBI ,

WORKS! Thanks a million 🙂

 

Best,
Luisa

@lulubrinki 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

@lulubrinki 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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