Best Of
Magic ETL - copy/paste JSON definition to clipboard
During the Technical User Group kickoff call, @john_stevens dropped some knowledge on us that just blew my mind. As seen in the gif below, you can copy Magic ETL tiles to the clipboard, and then paste into a text editor and it will give you the JSON definition of those tiles. That definition file can then be edited and repasted into the Magic canvas to produce new tiles. This can be incredibly helpful if you're wanting to edit Magic in bulk and don't want to use the Java CLI. I'm really excited to try this out more!
-Elliott 😁
Formatting Multiple Summary Numbers with Commas
Problem
To build summary numbers with multiple metrics, one needs to use the CONCAT operator, which converts the entire output to a string. This means that numbers won’t contain comma’s. In this case, a solution is needed to dynamically add comma’s to these numbers based on their length.
For example, in the Summary Number below the first number has no commas. The second number being a percentage is easier to handle because it is rounded to one decimal precision and never needs a comma because it never exceeds the hundreds.

Desired output:

Solution
- Find the Length of the Number
- Break it into appropriate comma blocks
- Concatenate commas between the blocks.
For example, a four-digit number is in the thousands and would have two sections: the first number followed by a comma and then the last three numbers: [1],[234]
This can be handling using a combination of LENGTH() to get the overall length of the number, ROUND() to remove decimal precision and SUBSTRING() to pick out the position of the characters you want to place in each comma block. In addition, it will need to be handled using nested CASE logic to identify each case and handle it appropriately. Lastly, it will be tied together with another CONCAT().
Code
Here is a sample of code that demonstrates how to format one metric up to hundreds of millions - 9 digits in length. Since you will have multiple summary numbers, you would need to do this for each numeric value in the summary number.
CASE
WHEN LENGTH(ROUND(SUM(`Measure Column`))) = 9 -- 9 digits = hundreds of millions
THEN
CONCAT(
SUBSTRING(ROUND(SUM(`Measure Column`)),1,3), -- first comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)), 3,3), -- second comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)),6,3) -- third comma block
)
WHEN LENGTH(ROUND(SUM(`Measure Column`))) = 8 -- 8 digits = tens of millions
THEN
CONCAT(
SUBSTRING(ROUND(SUM(`Measure Column`)),1,3), -- first comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)), 2,3), -- second comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)),6,3) -- third comma block
)
WHEN LENGTH(ROUND(SUM(`Measure Column`))) = 7 -- 7 digits = millions
THEN
CONCAT(
SUBSTRING(ROUND(SUM(`Measure Column`)),1,1), -- first comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)), 2,3), -- second comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)),5,3) -- third comma block
)
WHEN LENGTH(ROUND(SUM(`Measure Column`))) = 6 -- 6 digits = hundreds of thousands
THEN
CONCAT(
SUBSTRING(ROUND(SUM(`Measure Column`)),1,3), -- first comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)), 4,3) -- second comma block
)
WHEN LENGTH(ROUND(SUM(`Measure Column`))) = 5 -- 5 digits = tens of thousands
THEN
CONCAT(
SUBSTRING(ROUND(SUM(`Measure Column`)),1,2), -- first comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)), 3,3) -- second comma block
)
WHEN LENGTH(ROUND(SUM(`Measure Column`))) = 4 -- 4 digits = thousands
THEN
CONCAT(
SUBSTRING(ROUND(SUM(`Measure Column`)),1,1), -- first comma block
',',
SUBSTRING(ROUND(SUM(`Measure Column`)), 2,3) -- second comma block
)
WHEN LENGTH(ROUND(SUM(`Measure Column`))) < 4 -- < 4 digits = hundreds or less
THEN ROUND(SUM(`Measure Column`))
END
I Solved it with Domo Competition Details
Calling all community members, we want your insights to share on Domo.com's community blog. This competition is simple -- submit a technical solution and you could be one of our top entries highlighted and awarded at Domopalooza. This will provide great value to the Domo community as you participate.
Submission details:
What: Submit a short (150-500 words) description of a Domo solution that's helped you in your technical role. Please include the following:
- A Problem Statement: What task were you troubleshooting in Domo that kept coming up or was causing you headaches?
- A Solution Statement: What did you discover in Domo that allowed you to do this?
- Demo: Briefly describe (in words) OR include a short clip showing how you accomplished it
- Hero Image (Optional/If Applicable): Include a design (600x400px) that showcases your solution.
- If you need assistance in creating an image, please reach out to isolveditindomo@domo.com
When: Submit your article by February 28th. Early submissions welcome. Start thinking about your solution as soon as possible.
Where: Submit your articles via email to isolveditindomo@domo.com.
Why: Top articles will be posted on Domo.com's new Community Blog! By submitting to this competition, you're creating valuable content to help your fellow Domo community to be reviewed for years to come.
We appreciate you in advance for participating in the #ISolvedItWithDomo 2022 competition. We can't wait to highlight and award winners at Domopalooza in just a couple months.
Let's get creating!
Comment below if you have any further questions 👇🏼
Re: Buzz Installer Options when using Microsoft Intune
Hi @jstan, there's an option to link Buzz to an external platform, which is documented here: https://developer.domo.com/docs/api-reference/buzz-integration-api-reference.
I believe you'll need to first ask Support [support.domo.com] to activate the API for your instance as it is disabled by default. After they have turned it on, you can follow the steps in the doc.
amehdad
Re: GA Advanced Connector and Domo (Demographics)
So my point was on the settings in your Google Analytics instance as there's likely different permissions to tick/enable in the admin page.
Also confirming that, on Domo, you aren't getting an error message?
amehdad
Re: use fields from different tables group by date to calculate percentage
Hi @user095063, have you tried adding MAX before 'HDM Revenue'?
amehdad
Re: Issues after updating to Workbench 5.1
Echoing Grant's recommendation as the Domo Workbench dev team would be best placed to help solve the problem you've encountered.
amehdad
Re: Column Width in Domo Dashboard
Hi @user063136, limiting the width of the vertical bars via Chart Properties (i.e. Bar Settings -> Width Percentage) would apply it across all the bars as opposed to some. You could look to apply Limit Rows or a filter to enable users to toggle between different views to help make the values more clearer.
amehdad
Re: Connecting Woo Commerc
It doesn't appear for me when searching the Appstore. Perhaps reach out to Support [support.domo.com] and/or your Customer Success Rep to enquire.
amehdad
Re: Export Dashboard to Excel
Hi there, I don't believe that exporting option is available currently. As far as I am aware, it is only possible to export each table/card, from a dashboard, as a page via 'Export as PowerPoint'. It has been requested a while ago [https://dojo.domo.com/discussion/26571/export-page-of-cards-as-excel] but no updates since.
amehdad


