Expand my Community achievements bar.

The Community Advisors application is now OPEN for the second class of 2024. Apply to become a part of this exclusive program!
SOLVED

Removing the 'Hours' Text From Results

Avatar

Level 2

Hi everyone,

Could someone help me with the following simple text?

How do I remove the Hours text from the results column, so that it only returns the numeric value without the text?

 

displayname=
linkedname=direct
namekey=actualworkrequired
querysort=actualWork
textmode=true
valuefield=actualWorkRequired
valueformat=compound
viewalias=actualworkrequired

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Got it. This was tricky and the credit goes to @kynabaker16, who solved it in this post Remove the string "Hours" when creating a report.. 

 

Here's what worked in my project report:

 

displayname=Actual
linkedname=direct
namekey=actualworkrequired
querysort=actualWork
textmode=true
valueexpression=DIV({actualWorkRequired},60)
valuefield=actualWorkRequired
valueformat=compound
viewalias=actualworkrequired

2023-02-03 11_33_33-Window.png

View solution in original post

8 Replies

Avatar

Community Advisor

Try actualWork instead, that should give you what you're looking for.

 

displayname=
linkedname=direct
namekey=actualWork
querysort=actualWork
textmode=true
valuefield=actualWork
valueformat=integer

Avatar

Level 2

thanks Sheri, but that unfortunately didn't work, and it removed all values, so the column is now blank.

I'm looking for it to appear as 00.0 instead of 00.0 Hours

Any ideas?

Avatar

Community Advisor

What kind of report are you using? I tried this on a task report and it worked to return only the numerical values 

2023-02-03 07_40_09-Current Tasks.png

Avatar

Level 2

Hi Sheri,
Thanks for looking at this, it is a project report. Here is what I get when I try:
Capture.JPG
Thanks

Avatar

Correct answer by
Community Advisor

Got it. This was tricky and the credit goes to @kynabaker16, who solved it in this post Remove the string "Hours" when creating a report.. 

 

Here's what worked in my project report:

 

displayname=Actual
linkedname=direct
namekey=actualworkrequired
querysort=actualWork
textmode=true
valueexpression=DIV({actualWorkRequired},60)
valuefield=actualWorkRequired
valueformat=compound
viewalias=actualworkrequired

2023-02-03 11_33_33-Window.png

Avatar

Level 5

Try this in Text Mode (it's worked for me):

 

displayname=Task Actual Hours
textmode=true
valueexpression=CONCAT({task}.{actualworkRequired}/60)
valueformat=compound

Avatar

Level 2

thanks James...this didn't work either...it just returned zero on every line.