schema-discovery

โดย microsoft

สำรวจโครงร่างโมเดลเชิงความหมายของ Power BI โดยใช้ฟังก์ชัน DAX INFO กลยุทธ์การค้นพบเมตาดาต้าแบบก้าวหน้า การประมาณขอบเขต และเทคนิคการจำกัดขอบเขตสำหรับ...

npx skills add https://github.com/microsoft/fabric-apps-analytic-templates --skill schema-discovery

Schema Discovery

Table of Contents

TaskReferenceNotes
Must/Prefer/AvoidSKILL.md: Must/Prefer/AvoidGuardrails for schema discovery
Progressive Discovery StrategySKILL.md: Progressive Schema DiscoveryDecision tree for on-demand metadata fetching
Recommended Discovery OrderSKILL.md: Recommended Discovery OrderStart with scope estimation → tables → columns → measures → relationships
Metadata Object → INFO Function MapSKILL.md: Metadata Object → INFO Function MapTables, columns, measures, relationships, calc groups, calendars, UDFs, variations
Scope Estimation Queriesdiscovery-queries.md: Scope Estimation QueriesProbe table/column/measure/relationship counts before deep discovery
INFO Output Columnsdiscovery-queries.md: INFO Output ColumnsINFO.VIEW.* (read access); INFO.* (may need elevated access)
Narrowing Results (Projection + Filtering)discovery-queries.md: Narrowing ResultsSELECTCOLUMNS + FILTER to reduce output volume
Advanced Metadata (Calc Groups, Calendars, UDFs)discovery-queries.md: Advanced Metadata QueriesINFO.CALCULATIONGROUPS, INFO.CALENDARS, INFO.USERDEFINEDFUNCTIONS, INFO.VARIATIONS
Complete INFO Function Catalogdiscovery-queries.md: Complete INFO Function CatalogDynamic query to enumerate all INFO functions in the engine

Must / Prefer / Avoid

Must

  • Use fully-qualified 'Table'[Column] for column references
  • Use simple [Measure] for measure references

Prefer

  • INFO.VIEW functions for initial metadata discovery (read access, lightweight)
  • Progressive schema discovery over full schema dumps
  • SELECTCOLUMNS + FILTER to narrow INFO results

Avoid

  • Fetching full schema upfront — discover incrementally based on need
  • Re-fetching metadata already discovered in this conversation
  • Using GetSemanticModelSchema or GenerateQuery MCP tools (these are not available)
  • Using DiscoverArtifacts to find a semantic model — that MCP tool is not available; use npx fabric-app-data search (see fabric-cli) instead

Progressive Schema Discovery

Discover metadata incrementally based on what the user actually needs.

Strategy (Decision Tree)

User asks a question
  → Do I know which tables are relevant?
    → NO: Run INFO.VIEW.TABLES() to get table inventory
    → YES: Do I know the columns/measures for those tables?
      → NO: Run filtered INFO.VIEW.COLUMNS() and INFO.VIEW.MEASURES() for those tables
      → YES: Do I need relationships?
        → YES: Run INFO.VIEW.RELATIONSHIPS() filtered to those tables
        → NO: Do I need advanced metadata?
          → Have elevated INFO functions already failed in this session?
            → YES: Skip — assume no permission for all elevated queries
            → NO: Try the relevant elevated query:
              → Calculation groups: INFO.CALCULATIONGROUPS() + INFO.CALCULATIONITEMS()
              → Calendars: INFO.CALENDARS()
              → User-defined functions: INFO.USERDEFINEDFUNCTIONS()
              → Variations: INFO.VARIATIONS()
              → If query fails with permission error: mark elevated access as unavailable
  → Use discovered schema to write DAX queries (see dax-authoring skill)

Rules

  • Start with scope estimation — Run the scope probe query first to understand model size
  • Discover on demand — Only fetch tables/columns/measures relevant to the current user request
  • Use INFO.VIEW functions first (read access) — tables, columns, measures, relationships
  • Use INFO functions (may need elevated access) for: calculation groups, calculation items, variations, user-defined functions, calendars
  • Handle permission failures gracefully — If an elevated INFO function fails but INFO.VIEW.* functions succeeded, assume the user lacks elevated permissions and skip all elevated discoveries entirely
  • Always narrow results — Use SELECTCOLUMNS + FILTER to fetch only needed columns and rows
  • Cache discovered schema mentally — Don't re-fetch what you've already discovered in this conversation

Recommended Discovery Order

  1. Scope estimation — Count tables, columns, measures, relationships
  2. Tables — Get table names, identify relevant ones
  3. Columns — Get columns for relevant tables only
  4. Measures — Get measures (prefer using these over raw aggregations)
  5. Relationships — Get relationships between relevant tables
  6. Advanced metadata (if needed) — Calculation groups, calendars, UDFs, variations

Scope Estimation Query

EVALUATE
ROW(
    "TableCount", COUNTROWS(INFO.VIEW.TABLES()),
    "ColumnCount", COUNTROWS(INFO.VIEW.COLUMNS()),
    "MeasureCount", COUNTROWS(INFO.VIEW.MEASURES()),
    "RelationshipCount", COUNTROWS(INFO.VIEW.RELATIONSHIPS())
)

Metadata Object → INFO Function Map

Metadata ObjectPrimary INFO FunctionsAccess Level
TablesINFO.VIEW.TABLES()Read
ColumnsINFO.VIEW.COLUMNS()Read
MeasuresINFO.VIEW.MEASURES()Read
RelationshipsINFO.VIEW.RELATIONSHIPS()Read
Model configINFO.MODEL()May need elevated
Calculation groupsINFO.CALCULATIONGROUPS(), INFO.CALCULATIONITEMS()May need elevated
CalendarsINFO.CALENDARS(), INFO.CALENDARCOLUMNGROUPS(), INFO.CALENDARCOLUMNREFERENCES()May need elevated
User-defined functionsINFO.USERDEFINEDFUNCTIONS()May need elevated
VariationsINFO.VARIATIONS()May need elevated

For the full query catalog and output column details, see discovery-queries.md.

Running Discovery Queries

Use npx fabric-app-data query <alias> --query '<DAX>' to execute INFO queries against a semantic model. For full CLI options (profiles, file input, result limits), see the fabric-cli skill.

npx fabric-app-data query <alias> --query "EVALUATE INFO.VIEW.TABLES()"

Troubleshooting

ProblemSolution
INFO functions return permission errorsFall back to INFO.VIEW functions; mark elevated access as unavailable for this session
Metadata output too largeUse scope estimation + narrowing patterns from discovery-queries.md

Skills เพิ่มเติมจาก microsoft

oss-growth
microsoft
บุคลิกภาพนักเติบโตโอเอสเอส
agent-framework-azure-ai-py
microsoft
สร้างเอเจนต์ Azure AI Foundry โดยใช้ Microsoft Agent Framework Python SDK (agent-framework-azure-ai) ใช้เมื่อสร้างเอเจนต์แบบถาวรด้วย AzureAIAgentsProvider ใช้เครื่องมือที่โฮสต์ไว้ (ตัวแปลโค้ด การค้นหาไฟล์ การค้นหาเว็บ) ผสานรวมเซิร์ฟเวอร์ MCP จัดการเธรดการสนทนา หรือใช้งานการตอบสนองแบบสตรีมมิ่ง ครอบคลุมเครื่องมือฟังก์ชัน ผลลัพธ์แบบมีโครงสร้าง และเอเจนต์แบบหลายเครื่องมือ
development
airunway-aks-setup
microsoft
ตั้งค่า AI Runway บน AKS — จากคลัสเตอร์เปล่าสู่การรันโมเดล ครอบคลุมการตรวจสอบคลัสเตอร์ การติดตั้งคอนโทรลเลอร์ การประเมิน GPU การตั้งค่าผู้ให้บริการ และการปรับใช้ครั้งแรก เมื่อ: "ตั้งค่า AI Runway", "เริ่มใช้งานคลัสเตอร์ AKS", "ติดตั้ง AI Runway", "ตั้งค่า airunway", "ปรับใช้โมเดลกับ AKS", "อนุมานด้วย GPU บน AKS", "ตั้งค่า KAITO บน AKS", "รัน LLM บน AKS", "vLLM บน AKS", "ตั้งค่าการให้บริการโมเดลบน AKS", "AI Runway controller
devops
appinsights-instrumentation
microsoft
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.
devops
applicationinsights-web-ts
microsoft
ใช้เครื่องมือวัดแอปเบราว์เซอร์/เว็บด้วย Application Insights JavaScript SDK (@microsoft/applicationinsights-web) ใช้สำหรับ Real User Monitoring (RUM) — การดูหน้าเว็บ คลิก ดีเพนเดนซี AJAX/fetch ข้อยกเว้น อีเวนต์ที่กำหนดเอง และเทรซเอเจนต์ GenAI ฝั่งเบราว์เซอร์ที่เชื่อมโยงกับเทรซ OpenTelemetry ฝั่งแบ็กเอนด์ ครอบคลุมการตั้งค่า SDK Loader Script และ npm ส่วนขยายเฟรมเวิร์ก (React, React Native, Angular), Click Analytics, ตัวเริ่มต้นเทเลเมทรี และหลักการตั้งชื่อเชิงความหมาย OTel GenAI สำหรับสแปนเอเจนต์/เครื่องมือ/โมเดลที่ส่งจากเบราว์เซอร์
devops
azure-ai-anomalydetector-java
microsoft
สร้างแอปพลิเคชันตรวจจับความผิดปกติด้วย Azure AI Anomaly Detector SDK สำหรับ Java ใช้เมื่อต้องการนำการตรวจจับความผิดปกติแบบตัวแปรเดียว/หลายตัวแปร การวิเคราะห์อนุกรมเวลา หรือการตรวจสอบที่ขับเคลื่อนด้วย AI ไปใช้
development
azure-ai-language-conversations-py
microsoft
ใช้ Conversational Language Understanding (CLU) ด้วย Python SDK ของ azure-ai-language-conversations ใช้เมื่อทำงานกับ ConversationAnalysisClient เพื่อวิเคราะห์เจตนาและเอนทิตีของการสนทนา สร้างฟีเจอร์ NLP หรือผสานความเข้าใจภาษาเข้ากับแอปพลิเคชัน
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 สำหรับ Python ใช้สำหรับพื้นที่ทำงาน ML งาน โมเดล ชุดข้อมูล คอมพิวต์ และไปป์ไลน์ ทริกเกอร์: "azure-ai-ml", "MLClient", "workspace", "model registry", "training jobs", "datasets
development