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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Visualize state changes

Hello.

 

I'd like to visualize changes in a state (as in status). I have items that can move between states. To Do > In progress > Done for example. and i'd like to visualize this flow. 

 

The data looks something like this:

IDDateStateState changedState Flow
14/17/2019 12:00:00 AMTo doFALSETo do to To do
14/18/2019 12:00:00 AMTo doFALSETo do to To do
14/19/2019 12:00:00 AMTo doFALSETo do to To do
14/20/2019 12:00:00 AMIn progressTRUETo do to In progress
14/21/2019 12:00:00 AMIn progressFALSEIn progress to In progress
14/22/2019 12:00:00 AMdoneTRUEIn progress to done
14/23/2019 12:00:00 AMdoneFALSEdone to done
14/24/2019 12:00:00 AMdoneFALSEdone to done
14/25/2019 12:00:00 AMdoneFALSEdone to done

Note that State flow i a calculated column and the "to" can be changed. it can also be split to 2 columns if needed. 

My desired result would look something like this:

process.png

Paint skills ^^

If somebody knows a visual wich is capeable of something like this i'd like to know. Any other ideas to visualize this info is also welcome. Thanks in advance. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I check custom visual but haven't found any custom visual suitable for your requirement. Maybe you can try to use python visual or r visual to manually draw these graph.

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

You can use following calculate column formula to achieve your requirement:

Status =
VAR _fDate =
    CALCULATE (
        MIN ( Table2[Date] ),
        FILTER ( ALL ( Table2 ), [ID] = EARLIER ( Table2[ID] ) )
    )
VAR _diff =
    DATEDIFF ( _fDate, Table2[Date], DAY )
RETURN
    IF ( _diff < 3, "To do", IF ( _diff >= 3 && _diff < 5, "In progress", "Done" ) )

Status Changed = 
VAR _preview =
    CALCULATE (
        MAX ( Table2[Date] ),
        FILTER (
            ALL ( Table2 ),
            [ID] = EARLIER ( Table2[ID] )
                && [Date] < EARLIER ( Table2[Date] )
        )
    )
RETURN
    IF (
        _preview <> BLANK (),
        [Status]
            <> LOOKUPVALUE ( Table2[Status], Table2[ID], [ID], Table2[Date], _preview )
    )

Status Flow = 
VAR _preview =
    CALCULATE (
        MAX ( Table2[Date] ),
        FILTER (
            ALL ( Table2 ),
            [ID] = EARLIER ( Table2[ID] )
                && [Date] < EARLIER ( Table2[Date] )
        )
    )
RETURN
    IF (
        _preview <> BLANK (),
        LOOKUPVALUE ( Table2[Status], Table2[ID], [ID], Table2[Date], _preview ) & " to " & [Status],
        [Status] & " to " & [Status]
    )

11.png

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

I Already have the data as shown. I would like to create a viz something like i showed 

Anonymous
Not applicable

Hi @Anonymous ,

I check custom visual but haven't found any custom visual suitable for your requirement. Maybe you can try to use python visual or r visual to manually draw these graph.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.