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! **0 -
@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! **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
- 103 SQL DataFlows
- 627 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 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