Hey all,
I'm looking for html language to use in a summary number beast mode calculation to hide certain metrics so only the month portion is visible. I'm looking to hide everything from view in the summary number after the (`Post Month`) portion of the first 2 lines. Is this possible? Here's the beast mode I'm using (apologize for the length):
CONCAT('<div style="line-height:1.5">',
'<div style="font-size: 12px"><b>Month: ', Monthname(`Post Month`),
'<div style="font-size: 12px"><b>TY Room Revenue: $',
Case when (SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)) >=1000000 then
Concat( Round( ( SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end))/1000000,2),'M')
when ((SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)) >=1000 and
(SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)) <1000000) then
Concat( Round( ( SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end))/1000,2),'K')
else SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)
end ,
'<div style="font-size: 12px"><b>Budget Room Revenue: $',
Case when (SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Budget' and `Account Type` = 'Income' then (`Amount`) end)) >=1000000 then
Concat( Round( ( SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Budget' and `Account Type` = 'Income' then (`Amount`) end))/1000000,2),'M')
when ((SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Budget' and `Account Type` = 'Income' then (`Amount`) end)) >=1000 and
(SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Budget' and `Account Type` = 'Income' then (`Amount`) end)) <1000000) then
Concat( Round( ( SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Budget' and `Account Type` = 'Income' then (`Amount`) end))/1000,2),'K')
else SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) and `Rollup3` = 'Room Revenue' and `Type` = 'Budget' and `Account Type` = 'Income' then (`Amount`) end)
end ,
'<div style="font-size: 12px"><b>LY Room Revenue: $',
Case when (SUm(Case when Year(`Post Month`) = YEAR(CURDATE())-1 and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)) >=1000000 then
Concat( Round( ( SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) -1 and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end))/1000000,2),'M')
when ((SUm(Case when Year(`Post Month`) = YEAR(CURDATE())-1 and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)) >=1000 and
(SUm(Case when Year(`Post Month`) = YEAR(CURDATE())-1 and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)) <1000000) then
Concat( Round( ( SUm(Case when Year(`Post Month`) = YEAR(CURDATE()) -1 and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end))/1000,2),'K')
else SUm(Case when Year(`Post Month`) = YEAR(CURDATE())-1 and `Rollup3` = 'Room Revenue' and `Type` = 'Actuals' and `Account Type` = 'Income' then (`Amount`) end)
end )