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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
KR300
Helper III
Helper III

How to show a moving Train Image which is crosses a station based on a condition

11.png12.pngHi All,

 

I have 5 stages

6 REPLIES 6
v-venuppu
Community Support
Community Support

Hi @KR300 ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

Thank you.

 

v-venuppu
Community Support
Community Support

Hi @KR300 ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

KR300
Helper III
Helper III

@Anonymous , my scenario is different from this i think.

I have 11 Statins 1, 2, 3, 4, ..... 11

I have a simple table

Train       Train Station

Train1      Station4

Train2      Station3

Train3      Station8

there is a slicer based on Train Column

when i select any Train, it wll fill up all the columns before the station like Tracking an Order in Amazon app

Hi @KR300 ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @Anonymous for the prompt response.

yes, it does differ from standard slicer/date visuals.

You're aiming to highlight progress visually across predefined stations for each selected train, like a tracking bar.

Here's how you can implement this in Power BI:

1. Prepare Your Data

Your dataset should look something like:

Train CurrentStation
Train1 Station4
Train2 Station3
Train3 Station8
And a separate table with all station numbers or names:

StationNumber StationName
1 Station1
2 Station2
... ...
11 Station11

2. Create Relationships

  • No direct relationship between Trains and Stations.
  • Use a disconnected table approach to control filtering logic manually in a measure.

3. Create a Measure to Mark Progress

StationReached =
VAR SelectedTrain = SELECTEDVALUE(Train[Train])
VAR SelectedStation =
LOOKUPVALUE(
TrainStatus[CurrentStation],
TrainStatus[Train],
SelectedTrain
)
VAR CurrentStationNumber =
LOOKUPVALUE(
StationList[StationNumber],
StationList[StationName],
SelectedStation
)
RETURN
IF(
MAX(StationList[StationNumber]) <= CurrentStationNumber,
"✔️",
""
)

This will mark all stations before or equal to the selected train's current station with a check (✔️) and others with a pending icon ().

4. Create a Table or Bar Visual

  • Add StationName to rows.
  • Add StationReached to values.
  • Conditionally format with colors or icons using this logic to visually track train progress.

5. Add a Slicer for Train Selection

This way, when a user selects a train, the visual dynamically updates to show the progress across stations.

For more advanced visuals, you can use Custom Visuals:

  • KPI Indicator or Linear Gauge
  • Infographic Designer
  • Or custom visuals like Deneb (for full control using Vega-Lite)

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

Hi @KR300 ,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.

Thank you.

Anonymous
Not applicable

Hi  @KR300 ,

 

You can try using the following custom visual:

vyangliumsft_0-1741316383432.png

vyangliumsft_1-1741316383434.png

 

This is the related document, you can view this content:

Slicing and dicing dates: A practical guide to the... - Microsoft Fabric Community

Part 1 – Learn How To HIGHLIGHT Events On Power BI... - Microsoft Fabric Community

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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