Dates Being Filtered with Fixed
I'm using the following FIXED expression in one of my Beast Mode functions. The function is showing the right numbers, but when I try filtering by errorCode, it only shows attempt numbers for days when the errors occurred. I want to see the number of attempts for each day, regardless of whether an error was selected or not.
Attempts
SUM(
SUM(
'attempts'
) FIXED (BY date
FILTER DENY errorCode
)
)
This is the standard view when no errors are selected (this shows the daily attempts, errors, and error ratio - the errors are all errorCodes combined). Here it shows numbers for all days, even when there are 0 attempts or errors (as it should):
If I filter by one of the errors, the error numbers are correct, but the visual only shows attempt numbers for days when the errors occurred:
In the end, when filtering by errorCode, I want to show the same attempt numbers for all days from visual 1, with error numbers from visual 2. Is there any way to do this with the FIXED function?
Thank you!
Answers
-
Can you try adding your Error Ratio calculation into the filter deny clause as well?
1 -
@ST_-Superman-_ Thanks for the quick reply. I get an error when trying to put the error ratio calculation in the deny clause.
Here are the actual formulas - might provide a hint as to why.
Attempts:
SUM(
SUM(
CASE
WHEN … IN(X, Y, Z)
AND …
AND …
THEN 1
ELSE 0
END
) FIXED (BYdate
FILTER DENYerrorCode
)
)Failures:
SUM(
CASE
WHEN … IN(X, Y, Z)
AND …
THEN 1
ELSE 0
END
)Error Ratio:
I get an error when I try putting in the Error Ratio calculation into attempts DENY clause, like so:
SUM(
CASE
WHEN … IN(X, Y, Z)
AND …
THEN 1
ELSE 0
END
)
/
SUM(
SUM(
CASE
WHEN … IN(X, Y, Z)
AND …
AND …
THEN 1
ELSE 0
END
) FIXED (BYdate
FILTER DENYerrorCode
)
)SUM(
SUM(
CASE
WHEN … IN(X, Y, Z)
AND …
AND …
THEN 1
ELSE 0
END
) FIXED (BYdate
FILTER DENYerrorCode
,
(Above Error Ratio Calculation)
)
)0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive