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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
stealth_66
Frequent Visitor

Dynamic Axis Titles & Tooltip Additions

Hello all @MicrosoftPowerBICommunity.  I am NEW to Power BI and have been working on a project (which I need completed by 3/8/2022).  The issues that I need assistance with are: Creating a Dynamic Axis Title where the title changes depending on the last 3 chars in the slicer selection. (-App then title = # of Applications, or -Enr then title = # Enrolled).  

 

The other thing is that I have a tooltip that shows the values of each "Unit Type" for each "Term" based on the Day number before the term starts.  The current tooltip shows the day, the terms with their values.  Is there a way to show the date with the number that corresponds with only the most current term in the selection (i.e., =13 it would also say 6/20/2022).  

 

I am learning Power BI online but I cannot get through it fast enough to answer the above questions.  Any help is greatly appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @stealth_66 ,

 

1. I already have a measure for the Title based on concatenation of selected values from Unit Type selection

So you have successfully used =SELECTEDVALUE(MergedTermData[Unit Type])  and applied it to Title field, right?

 

 

 

2. But I'm confused about the axis label from  in the axis label the "# of ***" based on the selected value of -App or -Enr. 

Where you need to put it in? Please show us your expected output by using some screenshots.

 

 

Best Regards,
Eyelyn Qin

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi @stealth_66 ,

 

1. I already have a measure for the Title based on concatenation of selected values from Unit Type selection

So you have successfully used =SELECTEDVALUE(MergedTermData[Unit Type])  and applied it to Title field, right?

 

 

 

2. But I'm confused about the axis label from  in the axis label the "# of ***" based on the selected value of -App or -Enr. 

Where you need to put it in? Please show us your expected output by using some screenshots.

 

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @stealth_66 ,

 

If my measure return error? Or if you have selected multiple Types at one time?

Please provide more details, we are willing to help.😀

 

Best Regards,
Eyelyn Qin

Sorry for the delay.  When I put in the measure, it gives the unit type as well as the corresponding variable.  I would like for it to have the unit type as in the title (selected value) and then in the axis label the "# of ***" based on the selected value of -App or -Enr.  So, how you have it in your first measure is how it came out.

I already have a measure for the Title based on concatenation of selected values from Unit Type selection

 

Anonymous
Not applicable

Hi @stealth_66 ,

 

Please modify:

 

Axis Label - Switch = 
var _right=RIGHT(SELECTEDVALUE(MergedTermData[Unit Type]),4)
return 
 SELECTEDVALUE(MergedTermData[Unit Type]) & SWITCH(_right,"-App", "# of Applicants","-Enr", "# Enrolled")

 

Eyelyn9_2-1646877094051.png

 

Eyelyn9_1-1646877081532.png

 

And sorry agin🤔, I'm not clear about your tooltip issue, could you please show me the expected output?

 

 

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

Hi Eyelyn9, the code didn't work. Thank you though.

Anonymous
Not applicable

Hi @stealth_66 ,

 

For dynamic title, please create a measure by using RIGHT() to extract the last 3 characters:

Measure = "-App " & RIGHT( MAX('Table'[Column]),3) &" = # of Applications"

Then apply it to Title field:

Eyelyn9_0-1646804340301.png

 

And sorry for that the information you have provided is not making the second problem clear to me. Can you please share more detail information to help us clarify your scenario or share me with your pbix file after removing sensitive data?

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

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

Hi Eyelyn9,

I tried this DAX but it returned only False.

stealth_66_0-1646846014960.png

Maybe the last SELECTEDVALUE?

Hi Evelyn,

Thank you for your response.  (1) If I wanted to use the solution, how would I do it for -App, -Enr "# Enrolled" and if both selected then list # Applications and Enrolled.

https://1drv.ms/u/s!AuNIAjtCAa9egdsQaX061Tkaa4cUIA?e=HwwKO9 

For (2) the tooltip shows the days before term start but I was wondering if I could show the report date that corresponds to the latest term's day before term start.

stealth_66_0-1646838415411.png

Any help is greatly appreciated.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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