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

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

Reply
DataGeo
Helper I
Helper I

Using a date slicer with a Card but just showing the last value

I have a date slicer on one page and also a card. The card is numerical data in columnar form which has a date (single day) associate with each day. 

 

With the slicer in a range, it only gives me the options to "sum, average, minimum, etc. etc.".

 

What I want is the LAST value, so only the value for the end range of the slicer. Not sure how to accomplish this.


Thanks!

 

Date and Value column.PNGSlicer.PNG

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @DataGeo

 

Is this calculated measure what you mean?  My table is called Table, and the two columns are [Date] and [Value]

 

Measure = 
VAR d = LASTDATE('Table'[Date])
RETURN 
    SUMX(
        FILTER(
            'Table',
            'Table'[Date]=d),
            'Table'[Value])

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @DataGeo

 

Is this calculated measure what you mean?  My table is called Table, and the two columns are [Date] and [Value]

 

Measure = 
VAR d = LASTDATE('Table'[Date])
RETURN 
    SUMX(
        FILTER(
            'Table',
            'Table'[Date]=d),
            'Table'[Value])

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Hi, It works fine if you use the Date column in the same Table, but I'm using a Date hierarchy that is in a Calendar Table and it doesnt work. Can anybody helpme? 

Nailed it! Thank you!

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.