Image Analysis in Power BI – Using AI Vision Insights [4/4]
Published Jul 19 2022 12:41 PM 1,708 Views
Microsoft

Step D: Visuals Comparison with & without Measures

In the Power BI Desktop screen

1. Optional: you can add the “Simple Image” custom Visual so you can view a larger image instead of the thumbnail sized image in the matrix visual. 

GetMoreVisual.png SimpleImage.png
  • Populate the Image URL Field of the visual with the ImageURL field from the Images table. 

2. Add a Matrix visual and set its field properties

Matrix_Visual_Properties.jpg

  1. Notice when the Image is collapsed in the Matrix visual, then the Tag Value is incorrect.

ImageTagging_Collapsed.png

The Tag value for 99.91% should be table and not coffee.

ImageTagging_Expanded.png
  1. To correct this, we have two options when the row is collapsed. 

Tag column shows the correct Tag value for the corresponding maximum Confidence %. 

OR 

Tag Column shows comma separated value of all Tag values, and Confidence % is blank. 

 

4. We will need to use the DAX measures to correct this behavior, Create another matrix visual with the [Tag Measure] & [Confidence Measure] that we created in the previous blog post and rename the matrix fieldnames to Tag and Confidence %

ImageTaging_compare_collapsed.png When expanded we can see that the table has the highest Confidence %

ImageTaging_compare_expanded.png

5. If you would like the Comma Separated value of all the tags when collapsed with a blank confidence value, then alternate the commented-out section of the [Tag Measure] in the else portion of the IF statement. 

 

ImageTaging_compare_collapsed_CSV.png

 

Conclusion:

In these series of blog posts, we have seen

  • Smart data extraction algorithm of the Web by Example feature in Power BI.
  • Image Tag extraction using AI Vision Insights in Power BI
  • Using DAX Measures to control the UI behavior of the Matrix Visual.

The Image Tag extraction feature allows us to extract the object names from an image, and then perform Power BI analytics (filters, grouping, …)  on the extracted text.

 

Image License: 

The blurred laptop image in the screenshot was sourced from https://unsplash.com/photos/yC-Yzbqy7PY/download 

At the time of this the image license terms is listed below.

Unsplash_License.png

 

Version history
Last update:
‎Jul 19 2022 12:35 PM
Updated by: