# Repeating Groupのデータソースのソート条件を複数のtypeにまたいで設定する方法

**URL:** <https://www.nocode-faq.com/t/topic/2564>\
**Category:** bubble\
**Created:** [2022 年 2 月 2 日午前 7:56 UTC](https://www.nocode-faq.com/t/topic/2564 "2022-02-02T07:56:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rintaro.ishii0719](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@rintaro.ishii0719](https://www.nocode-faq.com/u/rintaro.ishii0719)\
**Post date:** [2022 年 2 月 2 日午前 7:56 UTC](https://www.nocode-faq.com/t/topic/2564/1 "2022-02-02T07:56:15Z")

</div>

下記のようなことを実現したいと思っているのですが、うまく実現できません。。  
どのように実現するのが良いものでしょうか？

■テーブル構造  
typeAとtypeBがあり、typeBのfieldの一つがtypeA型である  
・typeA：ユーザー  
・typeB：アクション  
└ユーザー（typeAのfield）

■実現したいこと  
typeA（ユーザー）をtypeB（アクション）の個数順に並び変える

---

<div class="post-metadata">

**Author:** ![rintaro.ishii0719](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@rintaro.ishii0719](https://www.nocode-faq.com/u/rintaro.ishii0719)\
**Post date:** [2022 年 2 月 2 日午前 10:00 UTC](https://www.nocode-faq.com/t/topic/2564/2 "2022-02-02T10:00:31Z")

</div>

こちらご質問をさせていただいて、恐縮ですが、、  
下記の記載で自己解決できました！

Search for typeB：group by typeA:sorted by count

---

<div class="post-metadata">

**Author:** ![macchi\_hal](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/macchi_hal/32/6234_2.png) [@macchi\_hal](https://www.nocode-faq.com/u/macchi_hal)\
**Post date:** [2023 年 2 月 18 日午前 4:04 UTC](https://www.nocode-faq.com/t/topic/2564/3 "2023-02-18T04:04:53Z")

</div>

僕の質問に解決策となりそうな回答が付きましたので共有させていただきます！

> [@bubbleにおいてamchartsなどを用いたチャートの表示](https://www.nocode-faq.com/t/topic/3421/8):
>
> データ構造が以下のようなシンプルなものであれば、group byで集計関数を通せばグラフ生成時に集計できますよ。 想定テーブル 商品 販売価格 販売日 AAA 1000 2023/02/10 AAA 1000 2023/02/11 BBB 1000 2023/02/10 do search forで想定テーブルの必要な条件で検索（例えば、販売日が当月） 検索結果（more…
