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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jcastr02
Post Prodigy
Post Prodigy

Multiple goal lines dependent on selection in slicer

I am needing a visual that will show average handle time by employee tenure, and by training type.   We have two different call types as well so I have a filter on the report page, and I would like the goal line to change based on the call type selected.   I have a measure created to move the goal line based on the "call type" (see below).  Right now I only have a line graph as I'd like to have each line represent the different "training types" , x axis - employee tenure and y - axis the handle time.  I can add a constant line but will not allow it to change based on the call type selection.  I also tried dropping the measure "goal AHT" into the values field but it doesn't let me have multiple values for line valuesGoal AHT.png

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

I didn't notice that AHT was a field!

 
In that case you need to perform an aggregation, like this:

On Demand = Calculate( Average('Table'[AHT]) , 'Table'[Training Type] = "On demand" )

Connect on LinkedIn

View solution in original post

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi @jcastr02 ,

 

You can create measure like DAX below, then put the new measure [AHT_Sum] into Values box of Line chart to replace the [AHT].

 

AHT_Sum= CALCULATE(SUM('OPS Performance'[AHT]), ALLSELECTED('OPS Performance'))

 

Best Regards,

Amy

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tex628
Community Champion
Community Champion

For this to work in your visual you will need to make seperate measures for each training type. Then remove the legend and add all measures to the values.

On Demand = Calculate( [AHT] , 'Table'[Training Type] = "On demand" )
Trainer Led = Calculate( [AHT] , 'Table'[Training Type] = "Trainer Led" )​

 

Goal = 
Switch(SelectedValue('Table'[Call Type) ,
"SAT Enrollment" , 104 ,
"SAT Refill Confirmation" , 99
)

 

 


Connect on LinkedIn

@tex628   Hi there, thanks for help, when I am trying to input formula, the AHT portion is not recognized.  I have already converted it to number columns in modeling, but it doesn't recognize the AHT column.  on demand formula.png

tex628
Community Champion
Community Champion

I didn't notice that AHT was a field!

 
In that case you need to perform an aggregation, like this:

On Demand = Calculate( Average('Table'[AHT]) , 'Table'[Training Type] = "On demand" )

Connect on LinkedIn

@tex628 This worked! thank you!!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors