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.
Hello -
I have a table (see below) where updates are being entered. I only want to show the latest Created On Date based on the Department and Product columns. So for Marketing + Category A's update, I only want the 2nd bolded update to show, since it is the latest update for that department and product.
How would I go about doing this? Thanks in advance!
Department | Product Line | Update | Created On |
Marketing | Category A | Version 1 update | 6/16/21 8:01 AM |
Marketing | Category A | Version 2 update | 6/16/21 10:21 AM |
Marketing | Category B | Version 1 update | 6/16/21 2:00 PM |
Sales | Category A | Update | 6/16/21 9:36 AM |
Solved! Go to Solution.
Hi @lilych ,
I did a test, the reference is as follows:
M_update =
VAR _max =
CALCULATE (
MAX ( 'Table'[Created On] ),
FILTER (
ALL ( 'Table' ),
'Table'[Product Line] = MAX ( 'Table'[Product Line] )
&& 'Table'[Department ] = MAX ( 'Table'[Department ] )
)
)
RETURN
CALCULATE ( MAX ( 'Table'[Update] ), 'Table'[Created On] = _max )
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lilych ,
I did a test, the reference is as follows:
M_update =
VAR _max =
CALCULATE (
MAX ( 'Table'[Created On] ),
FILTER (
ALL ( 'Table' ),
'Table'[Product Line] = MAX ( 'Table'[Product Line] )
&& 'Table'[Department ] = MAX ( 'Table'[Department ] )
)
)
RETURN
CALCULATE ( MAX ( 'Table'[Update] ), 'Table'[Created On] = _max )
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@lilych ,
Measure =
VAR a = MAX(Sheet1[Created On])
RETURN
CALCULATE(MAX(Sheet1[Line Update]), Sheet1[Created On] = a)
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 |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |