cancel
Showing results for
Did you mean:
Helper III

## End of year December month or latest month data in Dax

Hi,

I need pick past year december Amounts and current year latest month amount value by using dax measure. Please find the screenshot below. I need dax measure for Result column.

1 ACCEPTED SOLUTION
Super User

Have year column or use date table and have year there

Year = year([date])

A measure like

Calculate( lastnonblankvalue(Table[Date]), Sum(Table[Amount]) , Allexcept(Table, Table[Year]))

check if needed https://youtu.be/yPQ9UV37LOU

Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
3 REPLIES 3
Super User

Have year column or use date table and have year there

Year = year([date])

A measure like

Calculate( lastnonblankvalue(Table[Date]), Sum(Table[Amount]) , Allexcept(Table, Table[Year]))

check if needed https://youtu.be/yPQ9UV37LOU

Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
Helper III

Hi Amit,

Thank you for the code. it works fine and the video reference also very helpful to learn new things. Rock it.

Helper III

Pls help me on this.

Announcements

#### The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

#### Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

#### Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors