Forum Discussion
Irwin
Helper IV
5 years agoImport excel table with dynamic images
Hey everybody, I am an absolute beginner at PowerBi. I have made an excel table (would love to attach but forum wont let me), wherein you can select 3 values. Theses 3 values then translate to an...
- 5 years ago
Hi Irwin ,
Create 2 measures as below:
Measure_output1 = IF(ISFILTERED(Table2[Column1]), SWITCH(SELECTEDVALUE(Table2[Column1]), "Happy", CALCULATE(MAX('Table1'[Output 1]),FILTER('Table1','Table1'[Output 1]="😊")), "Medium", CALCULATE(MAX('Table1'[Output 1]),FILTER('Table1','Table1'[Output 1]="🤔")), "Sad", CALCULATE(MAX('Table1'[Output 1]),FILTER('Table1','Table1'[Output 1]="😢"))), CALCULATE(MAX('Table1'[Output 1]),FILTER('Table1','Table1'[A]=SELECTEDVALUE(Table1[A]))))Measure_output2 = IF(ISFILTERED(Table2[Column1]), SWITCH(SELECTEDVALUE(Table2[Column1]), "Happy", CALCULATE(MAX('Table1'[Output 2]),FILTER('Table1','Table1'[Output 2]="😊")), "Medium", CALCULATE(MAX('Table1'[Output 2]),FILTER('Table1','Table1'[Output 2]="🤔")), "Sad", CALCULATE(MAX('Table1'[Output 2]),FILTER('Table1','Table1'[Output 2]="😢"))), CALCULATE(MAX('Table1'[Output 1]),FILTER('Table1','Table1'[A]=SELECTEDVALUE(Table1[A]))))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Irwin
Helper IV
5 years agoThank you.
So this means I can still import the dynamic values (1,2,3) and then create the image display in PowerBi itself?
amitchandak
Super User
5 years agoIrwin , You can import excel as data. Unichar and some other formats can be used to create images. You have a check that out
Unichar :
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692
https://exceleratorbi.com.au/dax-unichar-function-power-bi/