Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Kgraham01
Frequent Visitor

Filter a Matrix Visual When one value is never empty

Hello all, 

Needing a bit of help for as I am learning power BI. I am using power BI to report out of our Dynamics 365 sales CRM. 

I have a matrix that is listing all the opportunities showing their estimate revenue and a count of their order lines. I have also include a link to each opportunity. This is where I am running into issues. 

 

When a different visual in the report is clicked, I want it to filter and only show the oppty related to that filter. But because every oppty has a link regardless of the filter. They don't hide as expected. Is there a way I can get the filter to ignore that column, or some other setting I can try? 

 

Thanks! 

1 ACCEPTED SOLUTION
Shravan133
Super User
Super User

To achieve your goal of filtering opportunities while maintaining hyperlinks, you can use measures and conditional formatting. Here's a step-by-step guide to help you resolve the issue:

  1. Create a Measure for the Hyperlink:

    • Instead of directly adding a hyperlink column, create a measure that generates the hyperlink dynamically based on the filtered data.

    • Use the following DAX formula as an example:

      DAX
      Copy code
      OpportunityLink = IF( HASONEVALUE(Opportunities[OpportunityID]), "https://yourcrm.url/opportunity/" & VALUES(Opportunities[OpportunityID]), BLANK() )

      This measure ensures that the link is only generated when a single opportunity is selected.

  2. Add the Measure to the Matrix:

    • Add the OpportunityLink measure to your matrix visual instead of the static hyperlink column.
    • This way, the hyperlink will only appear when the data is filtered to a specific opportunity.
  3. Adjust Visual Interactions:

    • Ensure that the interactions between visuals are set correctly.
    • Go to the "Format" pane, select "Edit interactions," and make sure the visuals interact with each other as intended. Verify that the matrix visual is set to be filtered by the other visuals.
  4. Conditional Formatting for Hyperlinks:

    • Use conditional formatting to apply hyperlinks dynamically.
    • In your matrix visual, go to the field where you want the hyperlink to appear.
    • Click on the dropdown arrow next to the field name and select "Conditional formatting."
    • Choose "Web URL" and then set it to use the OpportunityLink measure you created

View solution in original post

2 REPLIES 2
Shravan133
Super User
Super User

To achieve your goal of filtering opportunities while maintaining hyperlinks, you can use measures and conditional formatting. Here's a step-by-step guide to help you resolve the issue:

  1. Create a Measure for the Hyperlink:

    • Instead of directly adding a hyperlink column, create a measure that generates the hyperlink dynamically based on the filtered data.

    • Use the following DAX formula as an example:

      DAX
      Copy code
      OpportunityLink = IF( HASONEVALUE(Opportunities[OpportunityID]), "https://yourcrm.url/opportunity/" & VALUES(Opportunities[OpportunityID]), BLANK() )

      This measure ensures that the link is only generated when a single opportunity is selected.

  2. Add the Measure to the Matrix:

    • Add the OpportunityLink measure to your matrix visual instead of the static hyperlink column.
    • This way, the hyperlink will only appear when the data is filtered to a specific opportunity.
  3. Adjust Visual Interactions:

    • Ensure that the interactions between visuals are set correctly.
    • Go to the "Format" pane, select "Edit interactions," and make sure the visuals interact with each other as intended. Verify that the matrix visual is set to be filtered by the other visuals.
  4. Conditional Formatting for Hyperlinks:

    • Use conditional formatting to apply hyperlinks dynamically.
    • In your matrix visual, go to the field where you want the hyperlink to appear.
    • Click on the dropdown arrow next to the field name and select "Conditional formatting."
    • Choose "Web URL" and then set it to use the OpportunityLink measure you created

Thank you so much! that worked for me and got the result I was looking for. 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.