Best Of
Re: Is there any way to get a list of cards using a column from a dataset?
@lb1234 There is a report you can access from the Domo Governance Datasets Connector called "Card Fields and Beast Modes" that will tell you what dataset fields and beast modes are being used in each card. You should be able to filter that dataset by Data Source and Field Name to give you the names and IDs of the cards using those fields.
Re: Dashboard Descriptions
In addition to Descriptions, it may also be useful to add Tags to Dashboards.
Re: Case Statement Help - Condition not being passed
Hi @GrantSmith , I tried the logic you recommended and I'm still getting the same problem but I did notice something. So the calculation is:
CASE WHEN `transaction_type` = 'Actuals' AND
(
( YEAR(`transaction_date`) = YEAR(CURRENT_DATE()) AND MONTH(`transaction_date`) < 7 ) OR
( YEAR(`transaction_date`) = YEAR(CURRENT_DATE())-1 AND MONTH(`transaction_date`) >= 7 )
)
THEN
SUM(`net`)
ELSE 0
END
Now in my table view, I have 3 fields, Year, Revenue, Test field. Since the aggregation is on Sum, the values are showing as $100MM (25M are suppose to be for Actuals & the other value Budget should have 75M). Now when I add transaction_type field into the view, then I see the breakdown as:
Year | Net | Test Field
2020 | 100M | 100M
After adding Transaction_type into the view
Year | Net | Test Field | Transaction Type
2020 | 25M | 25M | Actuals
2020 | 75M | 0 | Budget
This confuses me more because it seems when you add transaction type field into the view, the logic is working but when it's not there, it doesn't work.
Re: Case Statement Help - Condition not being passed
The transaction_type does contain a value, 'Actuals'. There's only 2 values in the transaction_type field, 'Actuals' & 'Budget' and I've tried both and still not working. I've tried the 'like' method as well and it's still not working.
Re: Case Statement Help - Condition not being passed
Some suggestions:
Could there be trailing spaces in transaction_type? You could try `transaction_type` like 'Actuals%'. Also verify the case of transaction_type.
Case Statement Help - Condition not being passed
Hi All,
I've been struggling with this absurd problem when creating a beast mode calculation using case statement. Basically I'm trying to pass 2 conditions into my case statement but for some reason, even after validating the formula, only 1 condition is passing. My calculation is:
(CASE WHEN YEAR(`transaction_date`) = YEAR(CURRENT_DATE()) AND `transaction_type` = 'Actuals' THEN
(CASE WHEN MONTH(`transaction_date`) < 7 THEN SUM(`net`) ELSE 0 END)
WHEN YEAR(`transaction_date`) = YEAR(CURRENT_DATE())-1 AND `transaction_type` = 'Actuals' THEN
(CASE WHEN MONTH(`transaction_date`) >= 7 THEN SUM(`net`) ELSE 0 END)
ELSE 0 END)
There's results from this calculation are filtering on the dates but not on the transaction_type. I've tried positioning the transaction_type condition all around the case statement but it keeps failing. Examples:
(CASE WHEN YEAR(`transaction_date`) = YEAR(CURRENT_DATE()) THEN
(CASE WHEN MONTH(`transaction_date`) < 7 AND `transaction_type` = 'Actuals' THEN SUM(`net`) ELSE 0 END)
WHEN YEAR(`transaction_date`) = YEAR(CURRENT_DATE())-1 THEN
(CASE WHEN MONTH(`transaction_date`) >= 7 AND `transaction_type` = 'Actuals' THEN SUM(`net`) ELSE 0 END)
ELSE 0 END)
---------------------------
(CASE when `transaction_type` in ('Actuals') then
(CASE WHEN YEAR(`transaction_date`) = YEAR(CURRENT_DATE()) THEN
(CASE WHEN MONTH(`transaction_date`) < 7 THEN SUM(`net`) ELSE 0 END)
WHEN YEAR(`transaction_date`) = YEAR(CURRENT_DATE())-1 THEN
(CASE WHEN MONTH(`transaction_date`) >= 7 THEN SUM(`net`) ELSE 0 END)
ELSE 0 END)
end )
---------------------------
I can't figure out what I'm doing wrong in this case statement and why the condition isn't passing. Please if anyone can help or advise on the solution, I appreciate it.
Thanks
Re: How to Add a 45 degree line in a bubble chart with the line starting at (0,0)
Hey,
I am not sure what you mean by a 45 degree line. If you mean horizontal line you can do so by going to the quadrant lines option and setting a value on the y axis scale.
This will give you a horizontal fixed line based on the values you are using on your y axis.
Hope this helps. ?
Re: Disabling In-App Dark Mode for iOS
I completely agree @erikjamesmason the only option right now is to add colors to the individual cards in the dashboard (as they default to clear background) but we have like hundreds of dashboards and thousands and thousands of cards, so doing this for each card is not possible.
