How can I avoid denominator should not get filtered while calculating the percentage in beast mode
Hi,
I have a column name 'Order' with 1 to 6 values in it. I need to calculate the percentage of order 1 and show this percentage on a card in the dashboard. This percentage should change dynamically when the data gets refreshed.
I am taking unique count of orders having 1 divide by total count of orders. when i am filtering in analyzer with order 1, it gets filtering both numerator and denominator counts and i am getting 100% rather than actual percentage.
How this issue can be resolved, could you please suggest.
Thank you.
Best Answers
-
@SwapnaE you can use FIXED functions to achieve this in your denominator.
Say your filter column is called ColumnB, and you want to allow a date column (DATE) to filter
COUNT(ColumnB) FIXED (FILTER ALLOW
DATE
))You can set which columns are allowed to impact the denominator.
This will prevent all columns except for what you allow from impacting your denominator.
Here is a good reference article you can use to dial in the exact set up you need for your particular requirements.
David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**1 -
@SwapnaE you can use COUNT DISTINCT with a fixed function.
To not allow any filters, you would do something like this.
COUNT(DISTINCT `id`) FIXED (FILTER NONE)
David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**0
Answers
-
@SwapnaE you can use FIXED functions to achieve this in your denominator.
Say your filter column is called ColumnB, and you want to allow a date column (DATE) to filter
COUNT(ColumnB) FIXED (FILTER ALLOW
DATE
))You can set which columns are allowed to impact the denominator.
This will prevent all columns except for what you allow from impacting your denominator.
Here is a good reference article you can use to dial in the exact set up you need for your particular requirements.
David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**1 -
I'd like to staple this answer to my brain!
DataMaven
Breaking Down Silos - Building Bridges
**Say "Thanks" by clicking a reaction in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thank you David.
Can I use COUNT(DISTINCT
ORDERID
) with FIXED function and I do not want to allow any filter for the denominator.0 -
@SwapnaE you can use COUNT DISTINCT with a fixed function.
To not allow any filters, you would do something like this.
COUNT(DISTINCT `id`) FIXED (FILTER NONE)
David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**0 -
@david_cunningham, Thank you so much. My issue got resolved with your suggestion.
1 -
@david_cunningham I am struggling a bit trying to do a "filter none."
We have blood donor registrations, and some of these registrations are deferred and some are not. So the first part of the beastmode is just (count of deferred registrations)/(count of all registrations) for the deferral rate %.
However, when registrations are deferred, they can fall into many different deferral categories. So we're wanting to be able to filter to certain deferral categories without losing any of the denominator (total registrations).
I have tested the beastmode before adding the FIXED FILTER NONE, and so I know that everything in the beastmode is working correctly and that it is in fact adding the FIXED part that is giving me troubles, so I think I'm just not doing it correctly. The numbers no longer all go to 100% when selecting a deferral category, so that is good, but the %'s are not correct. I looked at 2 weeks where I should be getting .0717 and .089 but I'm getting .00033, so whatever I'm doing, it is way off.0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive