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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Sankey transition visual

Hi,

 

I want to dynamically filter table according to the date selected on the slicer. Is it feasible? If not, is there any workaround? I need to change "source" depending on the selected date range in "segment_date" field (eg when selecting date> 8/3/2022 in "source" it will show NEWLY_REGISTERED) . I need this solution to create sankey visual

Thanks for any advice2022-09-07_08h41_02.png2022-09-07_08h40_25.png

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @Anonymous ,

 

As far as I know, Power BI doesn't support us to return dynamic results by slicer in calculated column. Here I suggest you to create a measure to achieve your goal.

Firstly, please create an unrelated dimdate table by CALENDAR() or CALENDARAUTO() function.

Measure:

Source =
VAR _SELECTDATE =
    SELECTEDVALUE ( Dimdate[Date] )
VAR _MINDATE =
    CALCULATE (
        MIN ( 'Table'[segment_date] ),
        FILTER (
            ALLEXCEPT ( 'Table', 'Table'[persona_identifier] ),
            'Table'[segment_date] > _SELECTDATE
        )
    )
RETURN
    CALCULATE (
        MAX ( 'Table'[Destination] ),
        FILTER (
            ALLEXCEPT ( 'Table', 'Table'[persona_identifier] ),
            'Table'[segment_date] = _MINDATE
        )
    )

 Table visual:

RicoZhou_0-1662622188261.png

 

Best Regards,
Rico Zhou

 

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

Anonymous
Not applicable

Hi, thanks it works really  good on the matrix/table but it is not possible to add measure as a source on sankey visual. Do you have any advice how to solve this one? thanks in advance2022-09-08_10h53_35.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.