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
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
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.