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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jalaomar
Helper IV
Helper IV

Latest value from date field

Hello,

 

I have a dataset where I get the cumulative value each month and within that same column there is full year Budget and Forecast value 2023-12-01

 

What I want to do it to capture the latest value from the latest month (July 2023)

but using below measure, it return the 2023-12-01 value, how can I modify so that it excludes the buget and forecast value?

 

Last FI Value = CALCULATE( SUM(RPM[Orders received]); FILTER(RPM;RPM[Date]=MAX(RPM[Date])))
 
in the table there are the following column, So would like to extract value for July month (1000) only.
 
anyone who can support?
 
jalaomar_0-1691480642376.png

 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi, @jalaomar 

 

You can try the following methods.

Last FI Value =
CALCULATE (
    SUM ( RPM[Orders received] ),
    FILTER (
        RPM,
        RPM[Date]
            = CALCULATE ( MAX ( RPM[Date] ), FILTER ( ALL ( RPM ), [Date] <= TODAY () ) )
    )
)

veqinmsft_0-1691633070759.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

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

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi, @jalaomar 

 

You can try the following methods.

Last FI Value =
CALCULATE (
    SUM ( RPM[Orders received] ),
    FILTER (
        RPM,
        RPM[Date]
            = CALCULATE ( MAX ( RPM[Date] ), FILTER ( ALL ( RPM ), [Date] <= TODAY () ) )
    )
)

veqinmsft_0-1691633070759.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

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

@v-eqin-msft Awsome this is exactly what I was looking for 

Thanks!

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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