To filter an image in Power BI, you do not filter the image file itself — you filter the visual that displays it. The practical method is to put your image URLs or binary image data in a table, add an Image column to a table or card visual, and then use slicers, filters on the visual, or a measure-driven filter to control which image appears. Power BI has no built-in pixel editor, so any cropping, resizing or background removal happens before the image reaches the report. Below is the full workflow, from preparing the data to troubleshooting the blank boxes that usually appear on the first attempt.
What You'll Need
- Power BI Desktop (the free version is enough) and, for sharing, a Power BI service account with permission to publish.
- Images stored either as public HTTPS URLs or as binary data in a table. Local file paths such as C:\Images\photo.png will not render in the Power BI service.
- An image column set to the correct data category, or a measure that returns an image URL.
- Optional: Power Query for cleaning URL strings, and a slicer field such as Product, Region or Status to drive the filter.
Step-by-Step
- Get the images into the model. In Power BI Desktop, use Home > Get data and choose Web if your images live at public URLs, or import a table that already contains an image URL column. If your images are files, host them somewhere publicly reachable first. Keep one row per image, with a key column (for example ProductID) that also exists in your fact table.
- Clean the URL column in Power Query. Open Transform data, select the image column, and check that every value starts with https:// and has no leading spaces or line breaks. Trim and Clean are safe here. Apply the changes and close Power Query.
- Set the data category. In the Data view or Model view, select the image URL column, open the Properties pane, and set Data category to Image URL. For binary image columns the category is Image. This step is what tells Power BI to render a picture instead of printing the text.
- Build the visual that will hold the image. Add a Table visual and drag the image column into it, or use a Card visual with the image field. Size the row height so the picture is visible; the default row height often clips it.
- Add a slicer for the filter field. Drag the field you want to filter by (Product, Category, Region) onto the canvas as a Slicer. Select a value and confirm the table now shows only the matching image row.
- Filter at the visual level when you want a fixed image. With the image visual selected, open the Filters pane, expand the field you want, and choose the value to keep. This is the right approach for a logo or a fixed illustration on a report page.
- Filter with a measure when the image should change dynamically. Create a measure that returns a URL, for example one that switches between a green and red status icon based on a KPI. Then place that measure in the image visual or use it in a conditional format rule. Measures cannot be dropped straight into every visual type, so test with a Card or Table first.
- Control interaction between visuals. Select the slicer, open Format > Edit interactions, and confirm the image visual is set to Filter rather than Highlight or None. This is the usual reason a slicer appears to do nothing.
- Check the filter context. If the image is on a card and the card is filtered by a page-level filter, the page filter wins. Review the Filters pane at report, page and visual level, because all three combine.
- Publish and verify. Publish to the Power BI service and open the report in a browser. Confirm the images load there as well as in Desktop, since URL access rules differ between the two.
Menu labels can differ slightly by Power BI Desktop version and by region, so if a name is not exactly as written, look for the closest equivalent in the same pane.
Common Mistakes
- Leaving the data category unset, so the visual shows a long URL as text.
- Using local file paths or images behind a login. Power BI Desktop may show them while the published report shows broken icons.
- Filtering the image table instead of the visual. A filter on the lookup table does not always reach the visual if relationships are missing or set to the wrong direction.
- Forgetting Edit interactions, which leaves the image visual set to Highlight or None.
- Expecting Power BI to crop, resize or remove backgrounds. It does not; edit the source image beforehand.
- Putting the image field in a card that is already filtered to a single unrelated row, which leaves the card blank.
Tips
- Use small, consistently sized images. Large files slow the report and may time out in the service.
- Store images in a dedicated table with a clean key and a one-to-many relationship to your fact table.
- For status icons, keep a small lookup table of image URLs and switch with a measure rather than building many separate visuals.
- Test with a single slicer value first, then add more filters, so you can see which one breaks the image.
- Duplicate the page before experimenting with interactions and filter scopes, so you can compare behaviour side by side.
Troubleshooting
If the image area is blank, first check the URL in a browser. If it does not open there, Power BI will not load it either. Next, confirm the data category is Image URL and that the column type is Text, not a hyperlink-only field.
If the image shows in Desktop but not after publishing, the URL is probably not publicly reachable. Move the files to a public host or use a supported storage option, then refresh the dataset.
If the slicer changes the table but not the image, open Edit interactions and set the image visual to Filter. If the image still does not change, check the Filters pane for a conflicting visual-level or page-level filter, and confirm the relationship between the slicer field and the image table is active.
If the image is cut off, increase the row height in the table or resize the card. If the report is slow, reduce image file size and the number of image rows loaded.
If a measure-based image does not appear, test the measure in a Card visual to confirm it returns a valid URL, and check that the visual type supports measures. As a last resort, clear the visual and rebuild it; this removes stale field bindings without touching your data.
Frequently Asked Questions
Can I filter an image by a slicer in Power BI?
Yes. Put the image in a table or card visual, add a slicer for the related field, and make sure Edit interactions is set to Filter for the image visual.
Why does my image show as text in Power BI?
The column's data category is not set to Image URL, or the values are not valid HTTPS links. Set the category and clean the URL strings in Power Query.
Can Power BI crop or resize an image?
No. Power BI displays images but does not edit them. Crop, resize and compress the source file before importing or hosting it.
Do images need to be public to appear in the Power BI service?
In most setups, yes. Local paths and links behind a sign-in usually work only in Desktop and fail after publishing.
Can I use a measure to choose which image appears?
Yes, if the measure returns a valid image URL and the visual supports measures. Test it in a Card visual first.
Why does the image disappear when I select a slicer value?
The filter context is excluding the image row. Check relationships, page-level filters and visual-level filters, and confirm the image table has a matching key for that value.