Bar Chart Beastmode

Hi,
This problem has been given me issues for awhile now and I am completely lost. I have a bar chart that uses a specific beast mode.
CASE
WHEN SUM(Loads
) * (SUM(carrier pay
)/ SUM(Loads
)- avg(DATAllinAvgCPL
)) > 0 THEN SUM(Loads
) * (SUM(carrier pay
)/ SUM(Loads
)-avg(DATAllinAvgCPL
))
Else 0
END
The issues arises on the bar chart if I don't include a series. (This chart is calculating an incorrect number of 41,162.14
However when I add a series it calculates the correct number but the bar chart is not a solid color. I ideally want a solid bar chart. What might be causing this issue?
Answers
-
What fields do you have in the filter and sort columns?
If I solved your problem, please select "yes" above
0 -
ColemenWilson No filters, And sorted by date field.
0 -
If you remove all filters and sorts does it resolve the issue?
If I solved your problem, please select "yes" above
0 -
Removing all sorts and filters (while removing the series) results in the same problem.
0 -
This means most likely that you don't really want your beast mode to calculate over the raw totals of your dataset (which is doing now), but rather to SUM the cases in which this happens, for that you'll need to turn this into a WINDOW function, so it'll work the same way it does when you have Series, but without the series actually being present in the chart. It might end up looking something like:
SUM(CASE WHEN SUM(Loads) * (SUM(carrier pay)/ SUM(Loads)- avg(DATAllinAvgCPL)) > 0 THEN SUM(Loads) * (SUM(carrier pay)/ SUM(Loads)-avg(DATAllinAvgCPL)) Else 0 END) OVER (PARTITION BY `Lane`)
Hope this points you in the right direction.
0 -
marcel_luthi I thought so too. When I use the formula you provided I get a chart that looks like this.
0 -
I dont know if this might be the cause of the issue but the DATALLINAVG is calculated in the ETL using a formula tile. The formula for that is
PC-Miler Practical Mileage
*(Contract Avg Linehaul Rate
+Contract Fuel Surcharge
)0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 655 Datasets
- 114 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 409 Distribute
- 120 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive