简体   繁体   中英

Tableau Create a KPI Box showing growth in count (Month-over-Month)

I am trying to calculate growth in count of items (Month-over-Month) based on dates they were created at. I am getting wrong numbers when I use this formula:

{FIXED: COUNTD(IF MONTH ([Created Date]) = {MAX(MONTH([Created Date]))} THEN [Item ID] END )}

then

{FIXED: COUNTD(IF MONTH ([Created Date]) = {MAX(MONTH([Created Date]))} THEN [Item ID] END )} -1

Knowing that Item ID is a string, ie alphanumeric

For LOD expressions, depending on what you're going after, you will need to place dimensions before the colon. This would be worth a try.

Example:

{FIXED [dimension 1],[dimension 2]: COUNTD(IF MONTH ([Created Date]) = {MAX(MONTH([Created Date]))} THEN [Item ID] END )}

or in general:

{FIXED [dimension 1],[dimension 2]: Aggregation END )}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM