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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
daniellf
Frequent Visitor

Dynamic Target

Hi all!

 

I'm showing some results compared to a target in a gauge visual, however I would like to make the target only show when very specific filter options are selected - is there a way to do that through measures? For example, we are displaying the results for populations A through Z, but I only want the target to show if A - D are selected, it cannot be just A, just B, or any other combination. 

 

Also, my target value right now is just the average of a column in my report - could I create a dynamic target that responds to more than one filter and is easier to adjust (right now I just make sure the column is averaging the way I need but this is manual)?

 

Any tips or ideas would be great! Thanks 🙂

1 ACCEPTED SOLUTION
DataZoe
Microsoft Employee
Microsoft Employee

@daniellf ,
you could do this by using the quick measures concatenate then checking to see if it's concatenated the values in the right combination to find the combination.  Using that info, you can create a target with an if statement to change it out when it's found.

 

Target =
if([List of Slicer values] = "A, B, C, D",
80,
[All Average])


I've attached a PBIX with this so you can see!

DataZoe_0-1627088720681.png

 



Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

View solution in original post

1 REPLY 1
DataZoe
Microsoft Employee
Microsoft Employee

@daniellf ,
you could do this by using the quick measures concatenate then checking to see if it's concatenated the values in the right combination to find the combination.  Using that info, you can create a target with an if statement to change it out when it's found.

 

Target =
if([List of Slicer values] = "A, B, C, D",
80,
[All Average])


I've attached a PBIX with this so you can see!

DataZoe_0-1627088720681.png

 



Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Helpful resources

Announcements
60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.