Fair Value Measurements | Fair Value Measurements Instruments Measured at Fair Value on a Recurring Basis. The following tables present our cash and cash equivalents’ and investments’ costs, gross unrealized gains (losses), and fair value by major security type recorded as cash and cash equivalents or short-term or long-term investments as of June 30, 2019 and December 31, 2018 (in thousands): As of June 30, 2019 Cost Unrealized Gains Fair Value Cash and Cash Equivalents Short-term Investments Long-term Investments Cash $ 73,150 $ — $ 73,150 $ 73,150 $ — $ — Level 1: Money market funds 25,382 — 25,382 25,382 — — Subtotal $ 25,382 $ — $ 25,382 $ 25,382 $ — $ — Level 2: Commercial paper 51,836 — 51,836 9,472 42,364 — Certificates of deposit — — — — — — U.S. Treasury and agency bonds 185,928 350 186,278 — 145,087 41,191 Corporate bonds 89,557 599 90,156 — 37,201 52,955 Subtotal $ 327,321 $ 949 $ 328,270 $ 9,472 $ 224,652 $ 94,146 Level 3: — — — — — — Total $ 425,853 $ 949 $ 426,802 $ 108,004 $ 224,652 $ 94,146 As of December 31, 2018 Cost Unrealized Losses Fair Value Cash and Short-term Investments Long-term Investments Cash $ 78,194 $ — $ 78,194 $ 78,194 $ — $ — Level 1: Money market funds 11,780 — 11,780 11,780 — — Subtotal $ 11,780 $ — $ 11,780 $ 11,780 $ — $ — Level 2: Commercial paper 1,313 — 1,313 — 1,313 — Certificates of deposit 6,101 — 6,101 — 5,351 750 U.S. Treasury and agency bonds 220,136 (139 ) 219,997 — 158,204 61,793 Corporate bonds 108,968 (110 ) 108,858 — 74,850 34,008 Subtotal $ 336,518 $ (249 ) $ 336,269 $ — $ 239,718 $ 96,551 Level 3: — — — — — — Total $ 426,492 $ (249 ) $ 426,243 $ 89,974 $ 239,718 $ 96,551 There were no transfers between Level 1, Level 2, or Level 3 securities during the six months ended June 30, 2019 . Gross unrealized losses of less than $ 0.1 million as of June 30, 2019 were due to changes in market rates and are temporary in nature. All long-term investments had maturities of between one and two years in duration as of June 30, 2019 . Cash and cash equivalents, restricted cash, and investments as of June 30, 2019 and December 31, 2018 held domestically were approximately $ 413.0 million and $ 417.9 million, respectively. Contingent Consideration. The following table presents a reconciliation of the beginning and ending balances of acquisition-related accrued contingent consideration using significant unobservable inputs (Level 3) for the three and six months ended June 30, 2019 and 2018 (in thousands): Three Months Ended June 30, Six Months Ended June 30, 2019 2018 2019 2018 Beginning balance $ 393 $ 1,812 $ 2,143 $ 975 Obligations assumed — — — 1,200 Change in fair value (75 ) 162 (75 ) 455 Settlements — — (1,750 ) (656 ) Ending balance $ 318 $ 1,974 $ 318 $ 1,974 Upon the achievement of certain milestones in connection with our acquisition of Semanta, s.r.o., or Semanta, we released 11,250 shares of Class A common stock with a fair value of $0.8 million to the former shareholders of Semanta in the six months ended June 30, 2019 . In addition, upon completion of the indemnification period in the six months ended June 30, 2019 , we released 10,205 shares of Class A common stock to the former shareholders of Semanta that had previously been earned, but were held back in accordance with the terms of the acquisition agreement. We also paid $1.0 million to the former shareholder of Alteryx ANZ Pty Limited upon the achievement of certain milestones during the six months ended June 30, 2019 . Instruments Not Recorded at Fair Value on a Recurring Basis. As of June 30, 2019 , the fair value of our convertible senior notes was $583.9 million . The carrying amounts of our cash, accounts receivable, prepaid expenses and other current assets, accounts payable, and accrued liabilities approximate their current fair value because of their nature and relatively short maturity dates or durations. |