🎯 Mục tiêu bài học
Sau bài học này, bạn sẽ:
✅ Build multi-page reports với navigation
✅ Setup Drillthrough pages cho detail views
✅ Publish reports lên Power BI Service
✅ Config Row-Level Security (RLS) cho data access
✅ Scheduled Refresh + Alerts + Mobile layout
Thời gian: 40 phút | Độ khó: Intermediate-Advanced | Tool: Power BI Desktop + Service
📖 Bảng Thuật Ngữ Quan Trọng
| Thuật ngữ | Tiếng Việt | Mô tả |
|---|---|---|
| Drillthrough | Khoan sâu | Right-click → navigate to detail page |
| Q&A Visual | Hỏi & Đáp | Natural language query → auto chart |
| Power BI Service | Dịch vụ PBI | Cloud platform: share, refresh, alerts |
| Dashboard (Service) | Bảng điều khiển | Single page, pinned tiles from reports |
| RLS | Row-Level Security | Giới hạn data per user role |
| Gateway | Cổng kết nối | Bridge on-premise data → cloud |
| Scheduled Refresh | Làm mới tự động | Auto-refresh data theo schedule |
| Tooltip Page | Trang tooltip | Rich mini-viz khi hover |
| Cross-Report Drillthrough | Khoan qua báo cáo | Navigate giữa reports |
| Alert | Cảnh báo | Notification khi KPI vượt threshold |
Checkpoint
Drillthrough = right-click → detail page. RLS = data access per role. Service = cloud: share + refresh. Dashboard (Service) = single page, pinned tiles. Phân biệt Dashboard vs Report chưa?
📄 1. Multi-Page Reports
1.1 Page Structure
1📄 Page 1: Executive Overview2 - KPI cards, Revenue trend, Top categories, Map3 4📄 Page 2: Sales Detail5 - Product table, Channel breakdown, Waterfall6 7📄 Page 3: Customer Analysis8 - Segments, Retention, CLV9 10📄 Page 4: Hidden - Drillthrough Detail11 - Individual product/customer detail1.2 Page Navigation
1Insert → Buttons → Navigator:2- Page navigator: Auto tab bar3- Bookmark navigator: Switch views4- Style: Horizontal bar, active highlighted1.3 Tooltip Pages
11. New Page → Page Information: Allow use as tooltip = ON22. Size: 320x240px33. Design mini-visualization44. Main visual → Format → Tooltip → Page = tooltip page5→ Hover shows rich tooltip!Tooltip Pages = mini dashboard khi hover! Tạo page nhỏ (320x240), design mini chart, assign cho visual chính. Users hover → thấy context ngay!
Checkpoint
Multi-page: Overview → Detail → Drillthrough structure. Navigator = auto tab bar. Tooltip Pages = rich hover với mini-viz (320x240). Mỗi page có 1 purpose!
🔎 2. Drillthrough & Cross-Filtering
2.1 Setup Drillthrough
11. Create Drillthrough page22. Add field to "Drillthrough" well: Products[ProductName]33. Design detail visuals44. Back button auto-added (KEEP IT!)5 6Usage: Right-click product → Drillthrough → Product Detail2.2 Cross-Report Drillthrough
1Drillthrough page → Format → Cross-report: ON2→ Other reports can drillthrough to this page!2.3 Cross-Filtering vs Cross-Highlighting
| Interaction | Behavior |
|---|---|
| Cross-Highlight | Dims non-related data (default) |
| Cross-Filter | Hides non-related data |
1Format → Edit interactions → Choose Filter/Highlight/None per visualCheckpoint
Drillthrough: add field to Drillthrough well → right-click → navigate. Cross-Report: ON cho navigate giữa reports. Edit Interactions = control filter vs highlight behavior!
❓ 3. Q&A Natural Language
3.1 Setup
1Insert → Q&A visual2User types: "total sales by region last quarter"3→ Power BI auto-generates visualization!3.2 Improve Q&A
1Modeling → Q&A Setup:21. Teach synonyms: "revenue" = Total Revenue32. Suggest questions: "What are top 5 products?"43. Review & fix termsQ&A cho phép stakeholders hỏi bằng natural language — không cần biết DAX! Setup synonyms và suggested questions để Q&A chính xác hơn.
Checkpoint
Q&A = natural language → auto visualization. Teach synonyms cho accuracy. Suggest questions guide users. Great cho non-technical stakeholders!
📤 4. Publishing & Sharing
4.1 Publish to Service
1Home → Publish → Select workspace → Upload .pbix2→ Open at app.powerbi.com4.2 Dashboard vs Report (Service)
| Dashboard | Report | |
|---|---|---|
| Pages | Single page | Multiple pages |
| Source | Pinned tiles | Dataset |
| Interact | Click → go to report | Full filtering |
| Purpose | At-a-glance overview | Detailed analysis |
4.3 Sharing Options
| Method | Who | Control |
|---|---|---|
| Share | Specific people | Read-only |
| Workspace | Team members | Edit/read |
| App | Large audience | Curated package |
| Publish to web | Public | No security! |
| Embed | Website | API/iframe |
Publish to Web = hoàn toàn public, không có security! Chỉ dùng cho data không nhạy cảm. Cho internal data, dùng Share hoặc App.
Checkpoint
Publish: Desktop → Service. Dashboard = 1 page (pinned tiles). Report = multi-page (full interact). Share (specific people), App (large audience), Embed (website)!
🔒 5. Row-Level Security
5.1 What is RLS?
RLS giới hạn data user thấy dựa trên role:
- Sales Manager Vietnam → Chỉ thấy Vietnam data
- CEO → Thấy tất cả
5.2 Setup Static RLS
1Modeling → Manage Roles:21. Create role: "Vietnam Team"32. Table: Sales, Filter: [Region] = "Vietnam"5.3 Dynamic RLS
1// Data filter based on logged-in user2[SalesPersonEmail] = USERPRINCIPALNAME()5.4 Test RLS
1Modeling → View as → Select role → Verify correct dataCheckpoint
RLS = data access per role. Static: hardcode region filter. Dynamic: USERPRINCIPALNAME() match user email. Always test với View As trước khi publish!
🔄 6. Scheduled Refresh & Alerts
6.1 Gateway Setup
- On-premise data → Install Power BI Gateway
- Cloud data (SharePoint, SQL Azure) → Direct, no gateway
6.2 Refresh Schedule
1Service → Dataset → Settings → Scheduled refresh:2- Frequency: Daily / Hourly3- Max: 8/day (Pro), 48/day (Premium)6.3 Alerts
1Dashboard tile → Manage alerts:2- Condition: Revenue < 50M3- Frequency: Once/hour or Once/day4- Notification: Email + mobile push6.4 Mobile Layout
1View → Mobile layout → Drag visuals to phone canvas2- KPI cards at top, 1-2 key charts, simplified navCheckpoint
Gateway cho on-premise data. Scheduled Refresh: 8/day (Pro). Alerts = notifications khi KPI vượt threshold. Mobile layout = responsive cho phone!
📋 Tổng kết
Kiến thức đã học
| Chủ đề | Nội dung chính | Tầm quan trọng |
|---|---|---|
| Multi-page | Page structure, Navigator, Tooltip pages | Architecture |
| Drillthrough | Detail pages, Cross-report, Edit interactions | Navigation |
| Q&A | Natural language, Synonyms, Suggestions | Accessibility |
| Publishing | Service, Dashboard vs Report, Sharing | Deployment |
| RLS | Static/Dynamic roles, USERPRINCIPALNAME | Security |
| Operations | Refresh schedule, Alerts, Mobile view | Production |
Câu hỏi tự kiểm tra
- Report khác Dashboard trong Power BI thế nào?
- Drillthrough dùng trong trường hợp nào?
- RLS (Row-Level Security) setup thế nào?
- Q&A feature cần training synonyms tại sao?
Bài tiếp theo: Portfolio Projects — Dự án tổng kết: xây dashboard hoàn chỉnh!
🎉 Tuyệt vời! Bạn đã biết cách deploy Power BI dashboards cho production!
Nhớ: RLS + Refresh + Alerts = dashboard sẵn sàng cho doanh nghiệp. Bảo mật luôn là ưu tiên số 1!
