How to get values from a different card?
Hello, I want to create a donut chart containing two values (both coming from different cards).
Say for example below, I have these 2 separate cards (Single Value) [see IMG1]. The values of these 2 cards vary depending on which was selected in the slicer filter.
Is there a way I could create 1 card (donut) showing these 2 values in a single chart? [see IMG2]
============================
[IMG1]
[IMG2] sample only, image from excel
Best Answer
-
@Zel Since your calculation for Remaining Balance requires subtracting the Total Alerts/Events Used, I would actually recommend using a Filled Gauge card instead of a Donut/Pie chart. In this case you would use
COUNT(DISTINCT Alarm ID)
for the gauge values and the total amount of credits as your Optional Max Value.Also, does your slicer allow you to select multiple values for Store Chain? If so you may want to reconsider using a SUM(DISTINCT ) function. For example, if you filter to "Common Spirit Health" and "VA Medical Center - Forth Harrison, MT" should the total amount of credits be 200? The way your Remaining Balance calculation is set up now it would only return 100 since they both have the same value.
0
Answers
-
@MichelleH Yes, they are.
0 -
@Zel Since these cards are on the same dataset, I'd recommend creating a beast mode that mirrors the logic of each card and segments your data between "Total Alerts/Events Used" and "Remaining Balance" to use as the series of the donut card. Depending on how your original cards are set up you may need to create a second beast mode for the values as well.
If you need some additional direction on the beast mode(s) we would need to see how your original cards are set up.
0 -
@MichelleH here it is:
For "Total Alerts/Events Used"
- COUNT(DISTINCT
Alarm ID
)
For "Remaining Balance"
(SUM(DISTINCT CASE
when
Store Chain
like '%Penn Medicine%' then 250
whenStore Chain
like '%Utah Public Health Lab%' then 200
whenStore Chain
like '%VA Medical Center - Philadelphia, PA%' then 3719
whenStore Chain
like '%VA Medical Center - Wilmington, DE%' then 1000
whenStore Chain
like '%William Beaumont Hospital - Royal Oak Campus%' then 200
whenStore Chain
like '%Common Spirit Health%' then 100
whenStore Chain
like '%VA Medical Center - Fort Harrison, MT%' then 100
whenStore Chain
like '%HCA Management - Master Parent Account%' ANDStore
like '%TRH%' then 1
whenStore Chain
like '%HCA Management - Master Parent Account%' ANDStore
like '%LPH%' then 200ELSE 0
END) )- COUNT(DISTINCT
Alarm ID
)=================================================
For the "Remaining Balance" case when statement - there's a slicer for that, whichever is selected, the corresponding number will be used and deduct the count of unique alarm IDs (Total Alerts/Events Used).
0 - COUNT(DISTINCT
-
@Zel Since your calculation for Remaining Balance requires subtracting the Total Alerts/Events Used, I would actually recommend using a Filled Gauge card instead of a Donut/Pie chart. In this case you would use
COUNT(DISTINCT Alarm ID)
for the gauge values and the total amount of credits as your Optional Max Value.Also, does your slicer allow you to select multiple values for Store Chain? If so you may want to reconsider using a SUM(DISTINCT ) function. For example, if you filter to "Common Spirit Health" and "VA Medical Center - Forth Harrison, MT" should the total amount of credits be 200? The way your Remaining Balance calculation is set up now it would only return 100 since they both have the same value.
0 -
Ohh, let me try that one and see how it goes, thank you for the suggestion @MichelleH
The slicer only shows single value.
0 -
Hi @MichelleH , is there a way to show correct % instead of the actual value?
[IMG1] shows the actual value
[IMG2] shows the result when I changed the format to percentage
0 -
Great, thanks for your help @MichelleH ! But in Filled Gauge card, there isn't any option to show alternate values, such as the value itself and %, right?
Like for example, the main display would be the percentage and when you hover, it would show the actual value, just like on other card settings.
0 -
Thank you again, @MichelleH ! 😊 Appreciate your help!
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.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 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