|
【Appsheet教學】如何在資料表中使用虛擬欄位(Virtual Column)產生每月血壓的平均並可查看名細
Appsheet中可以加入虛擬欄位,這個虛擬欄位可以用來顯示血壓的平均,利用select語法配合[_thisrow],搭配averag、year、month、and就可以做到,方法有點類似資料庫的查詢,只是寫法不太相同,這次加上年月就可以先看年月的平均,若有需要還可以點選展開查看細項。
Syntax
SELECT( from-dataset-column , select-row? [ , distinct-only? ] )
年月
CONCATENATE(Year([_thisrow].[日期]),"年",Month([_thisrow].[日期]),"月")
當月平均
average(select(表單回應 1[高壓],and(year([日期])=year([_thisrow].[日期]),month([日期])=month([_thisrow].[日期]))))
select語法連結:
https://help.appsheet.com/en/articles/2357314-select
|
|