Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

return max value within current year

Hello,

 

I'm a beginner with DAX and power bi, and I would appreciate your help.

 

Basically, I have a table with similar columns A,B,C, but I don't know how to create a formula for D.

Capture.PNG

 

 

 

Basically I have different budget versions within the same year, but I want the report to only display the latest one from the current year. Sometimes we have budgets in the system that have higher version numbers (N) than the current one for this year, so simply displaying the highest number doesn't work.

 

thanks!

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Please refer to below calculated column.

Max N current year =
CALCULATE (
    MAX ( Table7[N] ),
    FILTER ( ALLEXCEPT ( Table7, Table7[proj] ), Table7[year] = YEAR ( TODAY () ) )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Please refer to below calculated column.

Max N current year =
CALCULATE (
    MAX ( Table7[N] ),
    FILTER ( ALLEXCEPT ( Table7, Table7[proj] ), Table7[year] = YEAR ( TODAY () ) )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

worked perfectly, thank you very much!

 

C.

jthomson
Solution Sage
Solution Sage

Are cells D5/D6 3 rather than 2 by design?

Anonymous
Not applicable

Hi

 

Each project has its own versioning in Oracle. What I meant was that for P002, the highest (ie current in 2018) budget version is 3.

 

However for P001, the current 2018 budget version is 2 (3 is in 2019).

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.