Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I am trying to embed an image in a table to show some KPI's based on whether sales are up or down.
In order to do this I have formula as a measure to calculate the change in values to prior reporting week by client
% variance -1 v -2 =
DIVIDE(SUM('Bookings'[-1 week rev])-sum(Bookings[-2 week rev]), SUM('Bookings'[-2 week rev]))
I am then using an if statment to return the correct image;
Column = IF([% variance -1 v -2]<0,"http://icons.iconarchive.com/icons/visualpharm/must-have/16/Stock-Index-Down-icon.png","http://icons.iconarchive.com/icons/semlabs/web-blog/32/arrow-up-icon.png")
Which in a way works...but sadly it returns both the positive and negative of the IF statement so for each client I have different results and the differing images showing. Without the IF statement, the formula works perfectly. Can anyone please shed any light on what I appear to be doing wrong?
TIA
Hi @stuart_honeyman,
Can you share a sample and some snapshots?
I would suggest using Unichar arrows instead, which is simpler. Please refer to Power-BI-Desktop-DAX-Using-Unicode-Arrows-as-Measures-in-a-Table.
Best Regards,
Dale
Can you give as a sample table to show your expected result?
Maybe replace the icon URLs with 'TRUE' and 'FALSE'.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 43 | |
| 39 | |
| 33 |