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
Anonymous
Not applicable

How to present only the last updated value?

So, I have a list of costs that are updated once a month and I need to be able to present the latest value. As you can see in the attached image, I have 2 "groups". The first one should present only the most recent costs values and the other one should present all off the costs values through the different dates. How can I show only the most recent values in the first group and all of the values in the seconde one?

 

 

Inked2_LI.jpg


THANKS!

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Anonymous ,

 

you should be able to solve that with the pattern for semi additive measures. An easy example would be:

Balance LastDate :=
CALCULATE (
    SUM ( Balances[Balance] ),
    LASTDATE ( 'Date'[Date] )
)

 

But check out the full article to get all the details about the semi additive measures:

Semi-additive calculations – DAX Patterns

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

4 REPLIES 4
selimovd
Super User
Super User

Hey @Anonymous ,

 

you should be able to solve that with the pattern for semi additive measures. An easy example would be:

Balance LastDate :=
CALCULATE (
    SUM ( Balances[Balance] ),
    LASTDATE ( 'Date'[Date] )
)

 

But check out the full article to get all the details about the semi additive measures:

Semi-additive calculations – DAX Patterns

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

I think it works, but I have to create a measure for all the different costs right?

Best Regards

Hey @Anonymous ,

 

for everything that is semi-additive you need to create an own measure.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

Thanks a lot for your help @selimovd !!

 

It works!!

Best regards

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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