this is the raw data.
I need to use SUM and AVG are because of need to get total value of each Rows from column Load so I use SUM, and for capacity actually only 1 value for each Rows.
Looks like it is related to the fact you are using a pivot, can you try in a regular table first to see if the formula works as expected in a row by row basis?
I will need to try with pivot to see how to make this work.
I think I can marking above 100% and 90%-100% as value 1 with this formula =
Testing-1 =
ifelse((sum({ppd_value})/avg({cold_aisle_cooling_limit})*100)>100, 1, 0)
Testing-2 =
ifelse((sum({ppd_value})/avg({cold_aisle_cooling_limit})*100)>90 AND (sum({ppd_value})/avg({cold_aisle_cooling_limit})*100)<100 , 1, 0)
but I having problem to show it on Bar Chart, because there is duplicate C01-C16 in another room.
so the level like this =
Site => Room => C01…C16
example :
USA1 => Room 2-2 => C01… until C16
Could you advice how to show in bar chart if there is duplicate C01-C16 in the other room
What is shown in the bar chart, is what you see in a table, for representing something similar to what you see in the pivot table in a graph the only thing I can think of it to have the data agregated before it reaches QuickSight.
Is it possible to have the data aggregated by site/room in the source?
The capacity is the same for every meassure so you should aggegate in the dataset of the lest, inside the Custom SQL something like a select site, rows, room, sum(load) group by site, rows, room