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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
EstherBR
Helper I
Helper I

Card showing last value added to a table

Hi,

 

I have the following table. I would like to create a card that shows the last sales value added to the table. In this case, the card should show 135. How can I create achieve this? Thank you so much!

 

EstherBR_0-1725871001317.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello,bhanu_gautam ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hi,@EstherBR .I am glad to help you.
If your real data is as per the test data you have provided and the Date column is registered in chronological order, i.e. the date of the next rank will always be greater than the date above it (i.e. chronological rank)
Then you can refer to my test below.

vjtianmsft_0-1725948532458.png

Last_notblankSales = 
VAR _maxDate =
    CALCULATE (
        MAX ( 'Sheet2'[Date] ),
        FILTER ( ALL ( Sheet2 ), NOT ( ISBLANK ( 'Sheet2'[Sales] ) ) )
    )
RETURN
    CALCULATE (
        MAX ( 'Sheet2'[Sales] ),
        FILTER ( ALL ( Sheet2 ), 'Sheet2'[Date] = _maxDate )
    )


Here is my test data:

vjtianmsft_1-1725948584925.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

Hello,bhanu_gautam ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hi,@EstherBR .I am glad to help you.
If your real data is as per the test data you have provided and the Date column is registered in chronological order, i.e. the date of the next rank will always be greater than the date above it (i.e. chronological rank)
Then you can refer to my test below.

vjtianmsft_0-1725948532458.png

Last_notblankSales = 
VAR _maxDate =
    CALCULATE (
        MAX ( 'Sheet2'[Date] ),
        FILTER ( ALL ( Sheet2 ), NOT ( ISBLANK ( 'Sheet2'[Sales] ) ) )
    )
RETURN
    CALCULATE (
        MAX ( 'Sheet2'[Sales] ),
        FILTER ( ALL ( Sheet2 ), 'Sheet2'[Date] = _maxDate )
    )


Here is my test data:

vjtianmsft_1-1725948584925.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

bhanu_gautam
Super User
Super User

@EstherBR , You can create a measure 

 

 Last Sales Value =
     LASTNONBLANK('YourTableName'[Sales], CALCULATE(MAX('YourTableName'[Sales])))
 
Go to the "Visualizations" pane.
Select the "Card" visualization.
Drag the newly created measure (Last Sales Value) to the "Values" field of the Card.



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors