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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Latest Month Measure

Hi, i want to create a measure show the sum of invoices from the latest month, my data set is several months out of date so i need to look for the latest month of data in the data set, fairly confident i need to use the MAX function but can't quite work out how to include it in the measure, thank you!

 

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

try this measure, maybe it works, but if you can share some sample data of your table it is better.

 

CALCULATE(

                 SUM('Table'[Amount]),

                 'Table'[Month] = MAX('Table'[Month])

)

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

1 REPLY 1
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

try this measure, maybe it works, but if you can share some sample data of your table it is better.

 

CALCULATE(

                 SUM('Table'[Amount]),

                 'Table'[Month] = MAX('Table'[Month])

)

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.