Best Of
Re: Pivot/unpivot help Magic ETL
@Cbrack - perhaps I'm misunderstanding you, but to achieve your desired output you should be able to load in the group as your column and then average your qty_percentage in the value. For example.
Or are you saying that you want to turn your rows into columns in your ETL?
Re: Datediff in Redshift vs Magic ETL
@Robaba04 Your "week" calculation is the closest to the logic used in Redshift, but you will need to put a FLOOR function around it to round down to the nearest integer:
FLOOR(DATEDIFF(`end_date__c`,`start_date__c`)/7)
Re: Capture filters on a page
You can utilize the onFiltersUpdate function within your domo brick to capture the event when the filters are changed.
Re: MFA on every login
I see this is awaiting review from the product team - hoping there is also an opportunity to authenticate via third party MFA apps (Google Authenticator, etc) on the near term road map?
Re: WorkFlow Code Engine Help
I recreated the codeengine function that you are asking about.
Loom example:
Exact code:
______________
http://const codeengine = require("codeengine")
async function addUsersToGroup(group, person) {
try {
const url = `/api/content/v2/groups/${group}/user`;
await codeengine.sendRequest("put", url, [person]);
return true;
} catch (error) {
throw new Error(error);
}
}
module.exports.addUsersToGroup = addUsersToGroup;
_________________
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
Re: Magic ETL Tiles groups for clearer organization and visibility/observability :D :D :D
@matthewpinson thank you kind stranger whom i've never met before









