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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.