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! Request now

Reply
RK_JOB
Helper II
Helper II

Latest value of slicer in a table

Hello,

 


I am struggling to show the latest value from the slicer in a table. Here is my formula, which works fine if I have a card.

 

Display Value = 
VAR _month =
    MAX ( 'Wage Inflation DATE'[YearMonth] )
RETURN
    CALCULATE (
        SELECTEDVALUE ( 'Wage Inflation DATE'[YearMonth] ),
        ( 'Wage Inflation DATE'[YearMonth] = _month )
    )

 

 

RK_JOB_0-1667871338849.png

 

But I want to show in the table as the latest value selected. so instead of 202207, I want to see 202209.

 

PBIX: https://drive.google.com/file/d/1U3ztyzqCtP1JuM8G3bRqhJNZBfPFz4Vo/view?usp=share_link

 

Thanks in advance,

EZ

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

I just changed the cross filter direction to single.  See image.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
RK_JOB
Helper II
Helper II

'thanks. Both the solutions work.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

I just changed the cross filter direction to single.  See image.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@RK_JOB , You need to create a new measure and use that in the visual or visual level filter

 

Display Value =
VAR _month =
MAXX (allselected('Wage Inflation DATE'), 'Wage Inflation DATE'[YearMonth] )
RETURN
CALCULATE (
Count ( 'Wage Inflation DATE'[YearMonth] ),
filter('Wage Inflation DATE', 'Wage Inflation DATE'[YearMonth] = _month )
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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