# สร้าง Dashboard ด้วย Looker Studio

## **สร้าง dashboard ด้วย Google Data Studio/Looker studio**

แสดงข้อมูลกิจกรรมจากอุปกรณ์ smartwatch

1\. เข้าไปที่ Looker Studio <https://lookerstudio.google.com/>&#x20;

<figure><img src="/files/RWlgRVjrqUTGTEdnNEl9" alt=""><figcaption></figcaption></figure>

2\. นำเข้า dataset [Link](https://drive.google.com/file/d/1XVwaatXcJAW_jVNgN0G58SLENiwLZ-xw/view?usp=sharing)

* คลิกปุ่ม **create** หรือ **สร้าง** แล้วเลือก report หรือ รายงาน จากนั้นจะปรากฏช่องทางการเชื่อมต่อข้อมูล

<figure><img src="/files/OAj3brZQyFtrtAbM0C66" alt=""><figcaption><p>สร้างรายงานใหม่</p></figcaption></figure>

* เลือก **อัปโหลดไฟล์**&#x20;

<figure><img src="/files/pAZ1YzBUpujysiiu3D1k" alt=""><figcaption><p>click <strong>File Upload</strong></p></figcaption></figure>

<figure><img src="/files/E0ixRPAoePw4Lz49paRN" alt=""><figcaption><p>click <strong>Add</strong></p></figcaption></figure>

<figure><img src="/files/9p8JQWgOeqSG6f2tpGwp" alt=""><figcaption><p>click <strong>ADD TO REPORT</strong></p></figcaption></figure>

* แล้วค้นหาไฟล์ ***activity\_dataset.csv*** แล้วคลิกปุ่ม **Add**

<figure><img src="/files/WVIUEMvTevk1Za931GPi" alt=""><figcaption><p>นำเข้าข้อมูล</p></figcaption></figure>

ตั้งชื่อไฟล์ ***Gesture Repor*****t** เลือก **Theme and Layout** แล้วเลือก Eadge Theme ตามรูป

<figure><img src="/files/UvFF13MOJdYzcykAQ9hs" alt=""><figcaption><p>ลือก Eadge Theme และกำหนดหัวข้อ report</p></figcaption></figure>

4\. สร้างกราฟเส้นจากข้อมูล&#x20;

* คลิกที่เมนู **Add a chart** และเลือก **Line graph**

<figure><img src="/files/JTxUAjDTBpnG21mRPF23" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/SYeEaeCh72qA5yLHsljV" alt=""><figcaption></figcaption></figure>

* จากนั้นคลิกลากวางบนพื้นที่ว่าง เปิดฟังก์ชัน **Dimension** แล้วเพิ่มคอลัมน์ ***index*** ในส่วนของ **Sort** เลือก **Ascending** และเพิ่มคอลัมน์ **index**

<figure><img src="/files/xPDJ2mP3kbx4iL5HWjyT" alt=""><figcaption><p>เปิดฟังก์ชัน <strong>Dimension</strong> แล้วเพิ่มคอลัมน์ <em><strong>index</strong></em></p></figcaption></figure>

<figure><img src="/files/iB7jP8tZukOk2wkB9ORp" alt=""><figcaption><p><strong>Sort</strong> เลือก <strong>Ascending</strong> </p></figcaption></figure>

<figure><img src="/files/DMeTDxJ5vxAyC9hqw9ku" alt=""><figcaption><p>เพิ่มคอลัมน์ <strong>index</strong></p></figcaption></figure>

* ในส่วนของ Metric เลือก accx และเพิ่มคอลัมน์ accy, accz

<figure><img src="/files/GRuC7YxHVUoBtoGvfe3P" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/moyO3nfI5ky26UHYPcPI" alt=""><figcaption><p>เลือก accx </p></figcaption></figure>

<figure><img src="/files/i2qJCT2EHzag4Gy0yDh7" alt=""><figcaption><p>เพิ่มคอลัมน์ accy, accz</p></figcaption></figure>

<figure><img src="/files/fWKxZhRapRN4ihHu8l0K" alt=""><figcaption></figcaption></figure>

5\. สร้างกราฟเพิ่มโดยการ copy จากกราฟที่สร้างแล้วก่อนหน้านี้&#x20;

<figure><img src="/files/xdnv7ny3z257MNUhU1Kk" alt=""><figcaption></figcaption></figure>

* ไปที่ **Metric** และเปลี่ยน คอลัมน์ accx, accy, accz เป็น gyrox, gyroy, gyroz

<figure><img src="/files/g2JRn9jiMBEedFsK3QG6" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/v9oNZwz6EUOZjyQPil79" alt=""><figcaption></figcaption></figure>

6\. สร้าง Drop-down list

<figure><img src="/files/gB4yKWcNhi36JNCavI5P" alt=""><figcaption><p>click Add a control and choose Drop-down list</p></figcaption></figure>

<figure><img src="/files/GtWDzG4pRLyp6C8RuVwq" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/NNQc2s8yl90EkAI5blzJ" alt=""><figcaption><p>view Square data only</p></figcaption></figure>

<figure><img src="/files/dGQ1iVeZTShHPfIP1tkO" alt=""><figcaption><p>view Circle data only</p></figcaption></figure>

7\. View graph

<figure><img src="/files/0UulpXUqPfN941J1X7EC" alt=""><figcaption><p>click View</p></figcaption></figure>

<figure><img src="/files/zghcoRjZZSbXwoo0kZZq" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aic-eec.com/iot-development-with-infineon-psoc-tm-6-and-bdh-platform/data-visualization/dashboard-looker-studio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
