Best Of
Re: I need help with my equation
I'm having a little trouble following the logic, it might be helpful if you shared your excel formula. Is the case statement you shared supposed to produce the New Fee A value, and you'll have another for New Fee B?
Also, should this part of the expression:
(Charge(Proceeds A/(Proceeds A+Proceeds B))+Proceeds A)
be changed to:
(Charge * (Proceeds A/(Proceeds A + Proceeds B))+Proceeds A)
Re: Export Magic ETL Code for External Version Control
@MasonW you can also use the CLI to export the JSON definition of the dataflow using the 'list-dataflow' command. This could be automated through scripting if needed.
Re: Dynamic CAGR formula?
Hello @ccccc4,
It's a bit complicated and I'll try to explain in detail how I approached this. First, I've created a Variable for the Start Period as follows:
I applied the same process for the CAGR end period, defining the start and end years for the calculation. Using these variables, I calculated the CAGR with the following formula:
Power(
(SUM(CASE WHEN Parts Kits Fiscal Year=SEG PKA CAGR End Period THEN Parts Kits Qty END)
/
SUM(CASE WHEN Parts Kits Fiscal Year=SEG PKA CAGR Start Period THEN Parts Kits Qty END))
,1/(SEG PKA CAGR End Period-SEG PKA CAGR Start Period+1))-1
On the dashboard, you can set the CAGR calculation period (I know, I also hate the decimal in the year).
This automatically calculates the CAGR for the 2019–2023 period in the following graph:
Re: Drill Down to an Existing Card
I'm on day 2 of using Domo and already came across this as a limitation. Has there been any progress on this since March?
Re: Running time intervals based off of an identifier
You can use a window function to do a lag
LAG(`Action Time`) OVER (PARTITION BY `Ticket Number` ORDER BY `Action Time`)
This can also be calculated using a Rank and Window tile in a Magic ETL
Then taking that you can calculate the time difference:
SEC_TO_TIME(UNIX_TIMESTAMP(`Action Time`) - UNIX_TIMESTAMP(`Prior Action Time`))
UNIX_TIMESTAMP will convert the timestamp to the number of seconds since 1970-01-01. Subtracting the two gives the number of seconds. SEC_TO_TIME converts the number of seconds to a human-readable format of hours, minutes, and seconds.
Re: Create Month End Date column with Year & Month columns?
There's a LAST_DAY() Function that gives the last day of the month for a given date:
LAST_DAY(STR_TO_DATE(CONCAT(`Year`,`Month`),'%Y%m'))
Re: YTD BeastMode with Variables
I don't have an example set up to try this.
SUM(CASE
WHEN (
(Year Selector = Fiscal Year AND Month Number >= 2) -- From February to December of the current fiscal year
OR
(Year Selector = Fiscal Year + 1 AND Month Number = 1) -- Include January of the next calendar year
)
AND Month Number <=
CASE
WHEN Month Selector = 'January' THEN 1 -- Stop at January for Year Selector = Fiscal Year + 1
WHEN Month Selector = 'February' THEN 2
WHEN Month Selector = 'March' THEN 3
WHEN Month Selector = 'April' THEN 4
WHEN Month Selector = 'May' THEN 5
WHEN Month Selector = 'June' THEN 6
WHEN Month Selector = 'July' THEN 7
WHEN Month Selector = 'August' THEN 8
WHEN Month Selector = 'September' THEN 9
WHEN Month Selector = 'October' THEN 10
WHEN Month Selector = 'November' THEN 11
WHEN Month Selector = 'December' THEN 12
END
THEN IFNULL(Amount * -1, 0)
ELSE 0
END)
Re: YTD BeastMode with Variables
What if you change January to 13 instead of 1? That should cause it to treat January as part of your fiscal year Feb 2024 - Jan 2025.
Re: Can you add an 'Export' Button in App?
I don't think there is a direct way to programmatically add a custom button inside a pivot card to trigger an export. But you can probably do something similar through a custom card or app.






