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
EsterBR
Helper II
Helper II

Card - Show the last value according to date

Hi,

 

I have the following table and I would like to add a card to the dashboard the shows the latest value in the table according to the last date. In this case the card should show 403. How can I achieve this?

EsterBR_0-1713130078597.png

Thank you so much!

 

 

1 ACCEPTED SOLUTION
bchager6
Super User
Super User

@EsterBR  This should work:

Sales for Most Recent Date =
VAR MaxDate =
    MAX ( 'Table'[Date] )
RETURN
    CALCULATE ( SUM ( 'Table'[Sales] ), 'Table'[Date] = MaxDate )

 

View solution in original post

1 REPLY 1
bchager6
Super User
Super User

@EsterBR  This should work:

Sales for Most Recent Date =
VAR MaxDate =
    MAX ( 'Table'[Date] )
RETURN
    CALCULATE ( SUM ( 'Table'[Sales] ), 'Table'[Date] = MaxDate )

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.