Best Of
Re: sum based on distinct in another column
I added an indicator in the dataflow. Every code when it is the first time presneted in the data, the indicator is 1, then I sumed up based on this indicator.
sum(
case
when `code_indicator` = 1 then `mc_spend`
else 0
end
)

Re: Beast Mode Editor - Comment Out Lines
You can comment out blocks of code with "/*" and "*/".
Not as easy as highlighting a block of code but much faster than having to comment each line out individually.
Re: Allow manual refresh of Cloud Amplifier / Federated dataset schema
This is so much needed. We would appreciate the Domo team enhancing this or providing an alternative solution.
I often fix tables in Databricks, and I want those changes to be reflected in cards. I cannot find a way to refresh manually other than waiting until it refreshes itself.
Re: Stacked bar + line chart doesn't stack
So I was able to make this work by making the beast modes part of the data set - for some reason that did trigger the values to stack
Thanks everyone for your help!
Jon

Re: Checkbox Selector not showing all values?
That's great to hear @Joe_M . If you have the option to accept answer on my response, that will help others in the community.
Re: View as user or view as role
@JasonAltenburg great idea! I have a testuser@domo.com account I use for this specific thing, but it's limited. Would be so much better if we could do as you describe.

Re: MapBox - No Background
The map background may not appear if the map is not centered or zoomed into a relevant location. Try adjusting the zoom level and center of the map to ensure you're viewing the correct area.
var mapCenter = [longitude, latitude];
var zoomLevel = 10;
You can debug with console. If you add console commands, then right click on the page and go to inspect > console. Clear the console, then run code, look for errors or your debug statements.
var mapStyle = 'mapbox://styles/mapbox/streets-v11';
var mapCenter = [-74.5, 40]; // Change to your dataset's center point
var zoomLevel = 10; // Adjust based on your data
var accessToken = 'your_mapbox_access_token';
mapboxgl.accessToken = accessToken;
var map = new mapboxgl.Map({
container: 'map',
style: mapStyle,
center: mapCenter,
zoom: zoomLevel
});