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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
setis
Post Partisan
Post Partisan

Title format on a visual

I'm using a measure to format a title on a visual based on a slicer. 

The measure is:

KPI_Title = 
VAR Selected_KPI = SELECTEDVALUE(Performance_Measures[Name])
RETURN
Selected_KPI & " by month"

 

The issue is that the name of one of the selections is "Absence paid %" and when I select this one, I get the error: "Cannot convert value 'Absence paid % by month' of type Text to type Numeric. 

 

How can I format the SELECTEDVALUE in the measure above to avoid the error due to the "%" symbol?

 

Thanks in advance

8 REPLIES 8
Pragati11
Super User
Super User

Hi @setis ,

 

You can try modifying your DAX as follows:

KPI_Title = 
VAR Selected_KPI = SELECTEDVALUE(Performance_Measures[Name])
RETURN
FORMAT(Selected_KPI, "Standard") & " by month"

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 thanks for your answer. Unfortunately, it didn't make the trick. I still get the same error.

 

zzz.PNG

Hi @setis ,

 

Do you mind sharing all the options you have in your slicer - Name?

Also what all fields are you moving to the visual giving error?

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 sure! The options are these:

options.PNG

There are more but the format is the same. 

I'm using a calculate group and the slicer to plot the results into a Line chart. 
I'm using Months from my date table as x axis, "Name" from the calculation group as Legend and my selectedmeasure() as values. 
When I select a calculation item without the "%" works fine.

Hi @setis ,

 

What is the datatype of NAME column? Has it got any null values in it?

I just tried to create concatenated value using the test values at my end and it works fine.

I don't see the issue because of % sign in the values.

 

My column's datatype is TEXT. See below:

Pragati11_0-1615381160762.png

Now if I create a similar measure as your's:

Pragati11_0-1615382230130.png

 

And then check slicer selection:

switch.gif

It looks like it works at my end.

 

Can you attach screenshot fo the Line chart that you are generating or may be a sample pbix file with the issue? I want to understand how you are using NAME column on your line chart. is it summarised to show COUNT, Count(Distinct), etc. ??

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 Thanks for your effort. Please find the file here: https://drive.google.com/file/d/1F3-43NIXU2igxlCYg_Ki-sAhDbrpGXpy/view?usp=sharing

 

The error shows up when selecting "Sales %" in the slicer

Hi @setis ,

 

this is about calculation groups. How is this calculation group created? Is it coming from SSAS (tabular) model?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 , I created it using tabular editor..

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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