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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jitterbug777
Advocate II
Advocate II

can SVG animation in dashboard be triggered by IF condition or KPI threshold?

Can I connect an SVG icon animation with the results of a dax calculation, KPI threshold or IF condition?

Say with Python or C#?

Can I make the SVG icon interactive, so touch based, user clicks it and something else happens in the dashboard...

(Or would you do this by installing a PowerApp element?).

 

2 REPLIES 2
Adamboer
Responsive Resident
Responsive Resident

Yes, it is possible to connect an SVG icon animation with the results of a DAX calculation, KPI threshold, or IF condition using Python or C#. You can write code that will dynamically generate the SVG code for the icon based on the current value of the calculation or condition.

Regarding making the SVG icon interactive, it is also possible to make the icon touch-based and trigger an action in the dashboard when the user clicks on it. You can achieve this using JavaScript or another front-end programming language.

Alternatively, you can also consider using a PowerApp element to achieve the interactivity. PowerApps allows you to create custom applications that can be embedded in your dashboard, and you can use it to create an interactive component that responds to user clicks on the SVG icon.

Hi thank you for a terrific answer.

Can I confirm regards the Powerapps option, would that SVG element within the PowerApp frame also respond automatically to changes in the measure or KPI?

 

Out of curiosity is powerApps all drag/drop modular building or is there also a programming component - if so which language? (I`m assuming C#).

 

Thank you so much.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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