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.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 640 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 767 Beast Mode
- 70 App Studio
- 43 Variables
- 716 Automate
- 185 Apps
- 461 APIs & Domo Developer
- 56 Workflows
- 14 DomoAI
- 39 Predict
- 16 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 134 Manage
- 131 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive