Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey Guys
Im trying to create a Calculated Column (Calculated Date) that returns the last DateWithData, grouped by Product.
I can only manage to get min by Product
CALCULATE(min(Table1[DateWithData]), ALLEXCEPT(Product[ProductName]))
Any ideas?
Thanks in advance
Solved! Go to Solution.
Hi @faint127 ,
Here we go.
calculated date =
VAR currecntdate = [Data]
RETURN
CALCULATE (
MAX ( 'Table (2)'[datewithdata] ),
FILTER (
'Table (2)',
'Table (2)'[Product] = EARLIER ( 'Table (2)'[Product] )
&& 'Table (2)'[Data] <= currecntdate
)
)
Hi @faint127 ,
Here we go.
calculated date =
VAR currecntdate = [Data]
RETURN
CALCULATE (
MAX ( 'Table (2)'[datewithdata] ),
FILTER (
'Table (2)',
'Table (2)'[Product] = EARLIER ( 'Table (2)'[Product] )
&& 'Table (2)'[Data] <= currecntdate
)
)
Seems like you need something like this: https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/td-p/985814
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |