slicer not working on the beast mode calculation


I have a beast mode calculation with a CASE statement , where it considers another beast mode calculation to indicate high, low and medium risks. However , when used it as a slicer, it only displays 'no risk'and does not indicate high, low and medium in the slicer options. I am using it to filter my HTML table based on a rating score.
How can I achieve this?
Answers
-
Hello @art_in_sky,
Is such a message currently displayed?
If so, please apply sorting and Change Aggregation settings from here.
If you found this post helpful, please use 💡/💖/👍/😊 below! If it solved your problem, don't forget to accept the answer.
0 -
Not that, I am using the below calculation
total rating=
SUM(
CASE
WHENLeverage Ratio values
>= 61.00 THEN 1
WHENLeverage Ratio values
>= 40.00 andLeverage Ratio values
<= 60.00 THEN 2
WHENLeverage Ratio values
>= 0.00 andLeverage Ratio values
<= 39.00 THEN 3
ELSE 0
END
+
CASE
WHENCash on hand values
<= 3.00 THEN 1
WHENCash on hand values
>= 4.00 ANDCash on hand values
<= 6.00 THEN 2
WHENCash on hand values
>= 7.00 THEN 3
ELSE 0
END
+
CASE
WHENProfit/Loss Margin values
< 0.00 THEN 1
WHENProfit/Loss Margin values
>= 0.00 ANDProfit/Loss Margin values
<= 9.00 THEN 2
WHENProfit/Loss Margin values
>= 10.00 THEN 3
ELSE 0
END
+
CASE
WHENCurrent Occupancy
<= 85.00 THEN 1
WHENCurrent Occupancy
>= 86.00 ANDCurrent Occupancy
<= 95.00 THEN 2
WHENCurrent Occupancy
>= 96.00 THEN 3
ELSE 0
END
+
CASE
WHENActive % of beds
>= 51.00 THEN 1
WHENActive % of beds
>= 26.00 ANDActive % of beds
<= 50.00 THEN 2
WHENActive % of beds
>= 0.00 ANDActive % of beds
<= 25.00 THEN 3
ELSE 0
END
+
CASE
WHENLHC Strength
>= 5.00 THEN 3
WHENLHC Strength
>= 3.00 ANDLHC Strength
<= 4.00 THEN 2
WHENLHC Strength
<= 2.00 THEN 1
ELSE 0
END
)which is a numeric value for each row, now i am using the below beast mode calculation using the above ( it is the above best mode 'total rating' instead of invalid reference
CASE
WHENINVALID_REFERENce
>= 0 ANDINVALID_REFERENCE
<= 6 THEN 'High Risk'
WHENINVALID_REFERENCE
>= 7 ANDINVALID_REFERENCE
<= 12 THEN 'Medium Risk'
WHENINVALID_REFERENCE
>= 13 ANDINVALID_REFERENCE
<= 18 THEN 'Low Risk'
ELSE 'No Risk'
ENDI am using slicer to show the high risk, medium risk and low risk to filter the table rows based on the above calculation, however i only see 'no risk ' in the options.
0 -
Try using an ETL instead of beast mode. Create a total rating calculation column that computes the sum logic at the dataset level. Then create a beast mode calculation as a silcer.
CASE
WHEN `total_rating` >= 0 AND `total_rating` <= 6 THEN 'High Risk'
WHEN `total_rating` >= 7 AND `total_rating` <= 12 THEN 'Medium Risk'
WHEN `total_rating` >= 13 AND `total_rating` <= 18 THEN 'Low Risk'
ELSE 'No Risk'
END** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **1 -
@ArborRose I tried creating 'total rating' calculation at Dataset level in Magic ETL, However , it throws the below error 'Aggregate functions are not allowed in this context'
0 -
You are still attempting to aggregate in a beast mode calculation. I was assuming a group by tile to aggregate.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **1 -
@ArborRose This worked when I created separate formulas instead of aggregating at Dataset level and applied the aggregation in beast mode.
1
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