Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
ตัวอย่าง count( distinct If( Year= [PAT_INFO.YFirstDate] ,[PAT_INFO.HN]))
สามารถทำให้เป็นรูปแบบ set analysis ได้หรือไม่ครับ
Hi Mistnh,
Try this:
Count({<[PAT_INFO.HN]={"=Year=[PAT_INFO.YFirstDate]"}>}[PAT_INFO.HN])
or
Count({<Year={"=Year=[PAT_INFO.YFirstDate]"}>}[PAT_INFO.HN])
or
count(if(Year=[PAT_INFO.YFirstDate],[PAT_INFO.HN]))
You can also try creating a flag in your table if both Year and [PAT_INFO.YFirstDate] is in same table
In script:
Load *,
if(Year=[PAT_INFO.YFirstDate],1,0) as Flag
from <>;
Then in front end: Count({<Flag={1}>}[PAT_INFO.HN])
Hi Mistnh,
Try this:
Count({<[PAT_INFO.HN]={"=Year=[PAT_INFO.YFirstDate]"}>}[PAT_INFO.HN])
or
Count({<Year={"=Year=[PAT_INFO.YFirstDate]"}>}[PAT_INFO.HN])
or
count(if(Year=[PAT_INFO.YFirstDate],[PAT_INFO.HN]))
You can also try creating a flag in your table if both Year and [PAT_INFO.YFirstDate] is in same table
In script:
Load *,
if(Year=[PAT_INFO.YFirstDate],1,0) as Flag
from <>;
Then in front end: Count({<Flag={1}>}[PAT_INFO.HN])
thank you very muck