user003049 Member

Comments

  • Thanks rado98, that sounds much simpler. I'll try that if I still get an error as I get more data. I only have two months worth at the moment.
  • So I transformed the date column to "YYYY-mm-01" so I don't need to cut off the day. I might be able to get correct data with this using CURDATE. It's lengthy but it seems to work. case when DATE_FORMAT(CURDATE(), '%Y-%m-01') = max(`Date`) then (SUM(DISTINCT(case when DATE_FORMAT(SUBDATE(CURDATE(), interval 1 month),…
  • Thanks DanB, I could get the correct data by adding a sum distinct to your answer. SUM(DISTINCT (case when MONTH(DATE_ADD(`Date`, interval 1 month)) = MONTH(CURDATE()) then `Traffic (desc)` end)) Unfortunately this is not the best answer for me as the data is uploaded around the second week of every month, so I might get a…
  • Thanks for reviewing my code. I'm aiming for a table with columns like this. Name,Last Month Traffic,Latest Month Traffic
  • Thank you very much ValiantSpur. The "-" is an actual dash (word), not null, so the calculation you have written seems to fit. I'm stuck with another problem though, I can save the beast mode calculation with the "Share Calculation on DataSet" checkbox checked, and I can see it in the "measures" property, but when I put it…
  • ご返答ありがとうございました。 すみません、私の質問の仕方が不適切でした。 設定方法ではなく、「X軸の日付表記が2段階に分かれるデータ」の条件をお聞きすべきでした。 (自動的に「X軸の日付表記が2段階に分かれるデータ」と「分かれないデータ」があるため) 現時点では、任意でX軸の日付表記は2段階に分けることは出来ないこと、承知いたしました。 要望として、あげさせていただきます。
  • ご返答ありがとうございます。 「データフローで歯抜けのデータを埋める」とは、ダミーの日付データを入れるという意味でしょうか? 現状、歯抜けデータでグラフを作成する際に、 「チャートの設定 > カテゴリーの目盛り(X)> 時間の目盛りを使用しない」にチェックし、 グラフ間を空けないようにしています。 ダミーデータを入れると、グラフ間が日付けデータ通りに広がってしまうのでは、と懸念しています。 欠けたデータを入れなおす、という意味でしたら、 基本的に、歯抜けデータはアップされない想定なのでしょうか?
  • ご返信ありがとうございます。 承知しました。 サポート宛に、問い合わせさせていただきます。