Forum Discussion

rmcgrath's avatar
rmcgrath
Advocate III
1 year ago
Solved

Dynamic X-Axis Title in a Line Chart

Is it possible to create a dynamic X-Axis title when I am using a Parameter for the X-Axis?  I tried creating a DAX measure to put into a Card and have that below the Line Chart.  The idea being when a user makes the Parameter Slicer selection, the title in the card would change as well.  Here is what I've tried but it errors out:

SCREENSHOT:

ERROR:

 

DAX code for the X-Axis Title Card:

XaxisTitle = IF(SELECTEDVALUE('X-axis'[X-axis])="AGE","Age (Weeks)",IF(SELECTEDVALUE('X-axis'[X-axis])="WEEKS","Weeks",""))
  • rmcgrath ,

    If you created field parameter it will change by default. Refer the images,

1 Reply

  • Arul's avatar
    Arul
    Super User

    rmcgrath ,

    If you created field parameter it will change by default. Refer the images,