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
Hi,
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!
😁😁
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |