Best Of
Re: Is it possible to retrieve Variables when using Bricks?
hello @marcel_luthi .
First I want to clarify for some that might read this thread thinking we are talking about the Variables product.
https://domo-support.domo.com/s/article/7903767835031?language=en_US
Bricks and Custom Apps do NOT work with the Variables product and there is no current workaround. Now when you're not talking about the Domo Variables product, but just talking about a passing data from one brick to another brick or another dashboard, there's one approach that comes to mind. One very common use case is the need to persist filters from one dashboard to another. This is accomplished using a combination of domo.onFiltersUpdate() and appDB.
The steps could look like this:
- The app/brick exists on both Dashboard 1 and Dashboard 2
- The app uses
domo.onFiltersUpdate()(https://developer.domo.com/portal/e947d87e17547-domo-js) to listen for page filters being added/removed on the page - Whenever that listener triggers, you can store the filters in a javascript variable
- Write the data in that variable to an appDB collection
- Navigate to new dashboard
- On initial render, that brick, the same brick that was on the first dashboard, reads from appDB to find the filters that you previously wrote to appDB.
- It then uses
domo.FilterContainer()to apply page filters on the new page
There are other things you'd have to catch and account for, like avoiding a permanent loop of writing to appDB then reading to appDB then applying filters then writing to appDB etc.
Similarly, if you have 2 bricks and you want some action you take in brick 1 to change behavior in brick 2, you can use appDB to pass those values to the other brick.
Here is the appDB documentation: https://developer.domo.com/portal/1l1fm2g0sfm69-app-db-api
Re: How to get Gross Sales from Shopify?
According to their documentation Net Sales is Gross - Discounts - Returns + Taxes + Shipping so you should be able to back into Gross sales with:
Gross = total_price + total_discounts + returns - total_tax - total_shipping_price_set_presentment_money_amount
Refunds/Returns isn't included in the All Orders report in the API, you'll also need to pull the Refunds report.
Re: View as user or view as role
OMG… yes, that would be huge. I would even ask to take it a step further and as an admin be able to mirror or impersonate an individual user.
Re: Dynamic beast mode for "how does my brand compare to the other brands" without showing brand names?
This isn't a possibility with a beast mode as they'll have access to the dataset that's powering the card. You'll need to do the masking within an ETL and utilize PDP to filter to filter only the rows that are allowed.
You'll then need to add an additional field to your dataset to identify masked rows to allow users to see all rows for the masked rows and also their own
Re: Dynamic beast mode for "how does my brand compare to the other brands" without showing brand names?
One way I have been able to accomplish something like this is if my "brand partners" are in my series, I hide the legend and adjust the hover text properties to not show the names. I also disable drilling so they can't get to the raw data, and since you are embedding, they wouldn't have access to the dataset in the data center.
I used Segments to color a specific customer a particular color. In your scenario, you might need to do something more dynamic to highlight the proper customer, but hopefully this gives you some ideas.
Announcing the "refreshed" Domo Community Forums
As the great David Bowie would say "ch, ch, chaaaanges".
Changes are here for what was formally Domo Dojo to the new Community Forums. We are so excited for you to be a part of our next evolution of community discussions, events, and collaboration across the globe.
Today you'll find improved navigation, a robust global search engine, and experts ready to tackle the most pesky of Domo issues. In the meantime, make yourselves at home. We welcome you to sign in, change your account photo/avatar, and introduce yourself to others.
We'll be releasing new content soon that will give a high level overview of what success means for those who utilize our Community Forums to achieve their company goals. Stay tuned and locked in to this category for updates.
With your help we can help grow this community, offering access to a diverse set of voices in our industries. Welcome again to the new DomoCommunity Forums.
Re: Beast Mode to Compare Dates with IF
CASE WHEN `Actual 1` IS NULL THEN —- If Initial is blank = On-Time CASE WHEN `Initial 1` IS NULL THEN 'On-Time' —- If Adjusted <= 25 days after Initial (or earlier than Initial) = On-Time. WHEN `Adjusted 1` <= DATE_ADD(`Initial 1`, interval 25 day) then 'On-Time' —- > 25 days = Overdue WHEN `Adjusted 1` > DATE_SUB(`Initial 1`, interval 25 day) then 'Overdue' —- If no Adjusted, & Initial > 25 days in the past = Overdue WHEN Adjusted 1` IS NULL AND `Initial 1` > DATE_SUB(CURDATE(), interval 25 day) then 'Overdue' —- If Adjusted > 25 days in the past = Overdue WHEN Adjusted 1` > DATE_SUB(CURDATE(), interval 25 day) then 'Overdue' ELSE 'Unknown' END ELSE 'Has Actual' END
You can have multiple WHEN clauses as part of your CASE statement and even nest case statements. The case statement will early terminate the evaluation as soon as it finds a true condition.
This is just for your date 1 field but feel free to tweak it as needed.
Anna Yardley -- Community Manager at Domo
Hello everyone!
My name is Anna Yardley, I'm the Community Forums Manager here at Domo. I love meeting and connecting with customers in-person whenever possible, but also utilize the Community Forums to virtually communicate everyday.
For leisure: I'm located in Utah and enjoy doing anything outdoors — hiking, boating, skiing and sports. I love planning vacations and hosting family and friends. I love card games and baking treats.
I'm excited to connect with many of you here. Thanks for engaging on the Community Forums!
Re: Adding extra budget condition in Beast Mode
Wow, that reply was incredibly fast!!! And it works; thank you so much; I didn't realize it would be that simple!




