Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowHi,
which formula do i have to use to calculate the highest date in a year? See Screenhot.
Solved! Go to Solution.
Hi there!
if you want to mark the highest date per year in your dataset, showing "True" for the last date of the year and "False" for others, please try this formula:
HighestDateInYear =
VAR MaxDateInYear =
CALCULATE(
MAX('YourTable'[Date]),
ALLEXCEPT('YourTable', 'YourTable'[Year])
)
RETURN
IF('YourTable'[Date] = MaxDateInYear, TRUE(), FALSE())
With this formula , MAX('YourTable'[Date]) will get the highest date.
and using ALLEXCEPT('YourTable', 'YourTable'[Year]) will keep the filter only on Year, ignoring other columns.
Hope this helps!
😁😁
Thanks so much
Hi @PaulCz You could achive this with custom column and grouping by year please try this
Group by Year:
Merge Back the Max Date:
Create the Highest Date Column:
Hi there!
if you want to mark the highest date per year in your dataset, showing "True" for the last date of the year and "False" for others, please try this formula:
HighestDateInYear =
VAR MaxDateInYear =
CALCULATE(
MAX('YourTable'[Date]),
ALLEXCEPT('YourTable', 'YourTable'[Year])
)
RETURN
IF('YourTable'[Date] = MaxDateInYear, TRUE(), FALSE())
With this formula , MAX('YourTable'[Date]) will get the highest date.
and using ALLEXCEPT('YourTable', 'YourTable'[Year]) will keep the filter only on Year, ignoring other columns.
Hope this helps!
😁😁
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
98 | |
69 | |
66 | |
49 | |
41 |