Forum Discussion
Constant line value that changes with Slicer selection
I am trying to create a constant line that changes value based on the Slicer selection, I have a Switch statement that assigns the value and the line value appears correctly on the line tooltip but the line isn't displaying at the correct value or moving at all.
My Switch statement is:
Flat Line =
SWITCH(
SELECTEDVALUE('Table'[Column]),
"P" , 85,
"G", 80,
"U", 80
)
Line Behavior:
9 Replies
- Greg_Deckler
Community Champion
That's really odd, do you have Flat line in the Line values part of your column and line chart? That's where it should be.- AnonymousNot applicable
I do.
- Greg_Deckler
Community Champion
Oh, I see what is going on, your line y-axis is changing. (the right-hand y-axis). So, you can't judge the position of the line by the left y axis, you have to judge it by the right-hand y axis.
- v-lionel-msft
Community Support
Hi Anonymous ,
The left Y axis is for labeling Columns values,
and the right Y axis is for labeling Line values
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
I see that now, Is it possible to assign the Y-axis values for the line?
- v-lionel-msft
Community Support
Hi Anonymous ,
Try the feature:
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
Toggling that option changes which side the Y-axis for the column data is on (left to right), then the line values just changes to whichever side the column data isn't on, and I don't see any options for changing the line Y-axis under that menu.