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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kpozzi90
New Member

Conditional Filtering by URLs

I have a sql table that holds estimated and actual values for many projects. I have a power bi report that is using this table for it's data, and i'm displaying it as an embedded report on a webpage. I am trying to use this report to compare the estimated value for the project I'm currently looking at to the actual values of other projects in the table. Is there a way I can filter out all estimated values except the estimated value for the current project i'm looking at? 

So far we have been using dynamic URL filters in our power bi reports so that we can reuse the same report for different projects on our website so ideally this could be done with the URL filter somehow.

Thanks!

2 REPLIES 2
lbendlin
Super User
Super User

URL filters should work. Note that they only override the filter upon page load, after that the user can change the filter back to something else.

 

What have you tried and where are you stuck?

I'm unclear on the syntax of how to do this conditional filtering. If I filter based on project id, it would remove all of the "actual" values from the other projects in the sql table. What would the syntax be to only show "estimated" value for a given project ID but also show all of the "actual" values for all other projects with different IDs? The sql table looks something like this

 

Project ID     |     Type     |     Value

1                      'Actual'           5

1                      'Estimate'       6

2                      'Actual'           7

2                      'Estimate'       8

3                      'Estimate'       4

If the project ID i'm looking at is 3, I would want the power bi visual to show the estimated value for project 3, and the actual values for projects 1 and 2.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.