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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jeongkim
Post Partisan
Post Partisan

Be selected latest value on slicer as per new data update

Hi,

 

Is there any way to get selected latest value?

Hope to see W13 is selected, then when W14 updated then W14 selected, ... 

jeongkim_0-1711941049659.png

 

1 ACCEPTED SOLUTION
v-zhengdxu-msft
Community Support
Community Support

Hi @jeongkim 

 

Certainly that can be realized, please try this:

First of all, I create a set of sample:

vzhengdxumsft_0-1712021635320.png

Then add a calculate column:

Column = 
VAR _NumTable =
    SELECTCOLUMNS (
        'Sheet1',
        'Sheet1'[Column1],
        "Num", VALUE ( MID ( 'Sheet1'[Column1], 2, 2 ) )
    )
RETURN
    IF (
        MAXX ( _NumTable, [Num] ) = VALUE ( MID ( 'Sheet1'[Column1], 2, 2 ) ),
        "last",
        'Sheet1'[Column1]
    )

This column can choose the max value and mark as the "Last" one:

vzhengdxumsft_1-1712021706921.png

Next add a slicer and select the last:

vzhengdxumsft_2-1712021752090.png

Finally if add a W16, the result is as follow:

vzhengdxumsft_3-1712021797256.png

Best Regards

Zhengdong Xu
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
v-zhengdxu-msft
Community Support
Community Support

Hi @jeongkim 

 

Certainly that can be realized, please try this:

First of all, I create a set of sample:

vzhengdxumsft_0-1712021635320.png

Then add a calculate column:

Column = 
VAR _NumTable =
    SELECTCOLUMNS (
        'Sheet1',
        'Sheet1'[Column1],
        "Num", VALUE ( MID ( 'Sheet1'[Column1], 2, 2 ) )
    )
RETURN
    IF (
        MAXX ( _NumTable, [Num] ) = VALUE ( MID ( 'Sheet1'[Column1], 2, 2 ) ),
        "last",
        'Sheet1'[Column1]
    )

This column can choose the max value and mark as the "Last" one:

vzhengdxumsft_1-1712021706921.png

Next add a slicer and select the last:

vzhengdxumsft_2-1712021752090.png

Finally if add a W16, the result is as follow:

vzhengdxumsft_3-1712021797256.png

Best Regards

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

Hi, 

There always should be the word 'Last' or something text, right?

Still good approach.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.