cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Matthias93 Helper III
Helper III

Changing text string to values

Hi,

 

I'm trying to make a graph from SharePoint data. In these SharePoint data there are answers to certain questions that look like this: Strongly Disagree, Disagree, Neutral, Agree, Strongly Agree. For lay-out reasons I cannot change these answers to values within SharePoint. For my graph however I would like to be able to calculate average values to each question. So StronglyDisagree should equal 1, Disagree 2,... What function will let me do this?

 

Thank you in advance.

 

Kind regards,

Matthias

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Vvelarde Community Champion
Community Champion

Re: Changing text string to values

hello @Matthias93

 

You can do it with a conditional column:

 

 

Go to Edit Query--Add Column - Conditional Column

 

Select each Value (Agree,Disagree, etc)  and put the Numeric Value that you assign.

 

 




Lima - Peru

View solution in original post

3 REPLIES 3
Matthias93 Helper III
Helper III

Re: Changing text string to values

Edit:

 

After pivoting my columns for the questions. My data now looks like this

 

Capture.PNG

Vvelarde Community Champion
Community Champion

Re: Changing text string to values

hello @Matthias93

 

You can do it with a conditional column:

 

 

Go to Edit Query--Add Column - Conditional Column

 

Select each Value (Agree,Disagree, etc)  and put the Numeric Value that you assign.

 

 




Lima - Peru

View solution in original post

mtmcd
Frequent Visitor

Re: Changing text string to values

How would you plot those on a chart?  Say you want the parameters (Strongly Agree, Agree, Neutral, etc) on the Y-axis and the count on the X-axis.  How do you plot it such that the parameter names are used as the Y-axis labels?  I have a very similar problem in that my string values can't be used as axis labels.

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors