Concat + Round

Reply
Highlighted
Major Blue Belt

Concat + Round

Hello, I need a text card that has a specific text concatenated to a beast mode, which is a percentage value.

 

Currently I have the syntax as:

 

Concat(TEXT, Round(BeastMode*100,2))

 

But it returns this 

 

Scrap.JPG

 

And my scrap values is of 2.09% (0.02089 in the beast mode before multiplying by 100)

 

Any help provided is appreciated.

 

Thanks in advance.

 


Accepted Solutions
Highlighted
Major Blue Belt

I did but it didn't work as expected Smiley Frustrated

 

Anyways I solved it with the Header/Footer chart option. I just added the text as Header and then the beast mode calculation set up as percentage and that did the trick Smiley Very Happy

 

Sc.JPG

View solution in original post


All Replies
Highlighted
Black Belt

@MartinB 

Did you check your formatting options in in the optional value field? You can control what data type it should be and the decimal places just like you do on any other card. You can even choose percentage, so you don't have to do any beast mode gymnastics. 




**Make sure to like any users posts that helped you and accept the ones who solved your issue.**
Highlighted
Major Blue Belt

I did but it didn't work as expected Smiley Frustrated

 

Anyways I solved it with the Header/Footer chart option. I just added the text as Header and then the beast mode calculation set up as percentage and that did the trick Smiley Very Happy

 

Sc.JPG

View solution in original post

Highlighted
Black Belt

Hey Martin, 

If i had to guess you have an error in when your beastmode evaluates the concat.

 

Can you confirm that Round(BeastMode*100,2) delivers the expected result in a table card?

 

Does your CONCAT function wrap an aggregation or does it evaluate at the row level?

 

consider the differnece between:

concat('text', round(`metricA` / 1000,2))

concat('text', round(sum(metricA) / 1000,2))

 

the first will calculate at the row-level whereas the second will calculate AFTER aggregation.  If I use the first calculation, you might get A result, but it's probably not the expected result.

 


Jae Wilson
Check out my Domo Training YouTube Channel

**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"
Announcements
Domopalooza 2021 Call for Presenters: We want to hear how Domo is revolutionizing the way you do business!

Click here to submit your story.