Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to create a column that populates the campaign name that has the max create date for each id. Below is an example of the data set and the ideal end result. There are some campaigns that have the same created date but a different time stamp as well.
I was able to make a measure that populated the campaign name correclty but am unable to figure out how to make a column that does the same.
Below is the measure I made:
Solved! Go to Solution.
Hi @Winter_king94 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create calculated columns.
Column =
var _max_date=CALCULATE(MAX('Table'[Created Date]),FILTER('Table','Table'[ID]=EARLIER('Table'[ID])))
RETURN CALCULATE(MAX('Table'[Campaign Name]),FILTER('Table',[ID]=EARLIER('Table'[ID]) && [Created Date]=_max_date))
Column 2 =
CALCULATE(MAX('Table'[Created Date]),FILTER('Table','Table'[ID]=EARLIER('Table'[ID])))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Winter_king94 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create calculated columns.
Column =
var _max_date=CALCULATE(MAX('Table'[Created Date]),FILTER('Table','Table'[ID]=EARLIER('Table'[ID])))
RETURN CALCULATE(MAX('Table'[Campaign Name]),FILTER('Table',[ID]=EARLIER('Table'[ID]) && [Created Date]=_max_date))
Column 2 =
CALCULATE(MAX('Table'[Created Date]),FILTER('Table','Table'[ID]=EARLIER('Table'[ID])))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |