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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.