惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Fortinet All Blogs
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
小众软件
小众软件
有赞技术团队
有赞技术团队
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
AWS News Blog
AWS News Blog
C
Cisco Blogs
美团技术团队
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
W
WeLiveSecurity
D
DataBreaches.Net
博客园 - 司徒正美
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
Vercel News
Vercel News
月光博客
月光博客
T
Tailwind CSS Blog
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
WordPress大学
WordPress大学
Cyberwarzone
Cyberwarzone
Recent Announcements
Recent Announcements

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Power BI
Pragnesh Pomal · 2026-06-29 · via DEV Community
Cover image for Power BI

Pragnesh Pomal

What is Power BI?

Power BI is a business intelligence tool made by Microsoft. It lets you:

  • Connect to data (Excel, CSV, databases, websites, etc.)
  • Clean and transform that data
  • Build relationships between tables
  • Create interactive visual reports and dashboards
  • Share those reports with other people online

Step 1: Connecting to Data

The first thing you do in Power BI is connect to a data source. You go to:

Home → Get Data → choose your source

Sources we connected to in class:

  • Excel workbooks
  • CSV / text files
  • SQL Server databases
  • SharePoint lists
  • Web URLs (yes, you can pull data directly from a website!)

Once connected, Power BI opens Power Query Editor where the real work begins.

Step 2: Cleaning Data in Power Query

Power Query is Power BI's built-in data cleaning tool. This is where you transform your raw, messy data into something usable before loading it into your model.

Everything you do here is recorded as steps on the right side panel called Applied Steps. This means you can undo any step at any time without losing your work.

Transformations we learned:

Transform What it does When to use it
Remove Duplicates Deletes repeated rows Cleaning ID or key columns
Fill Down Fills blank cells with the value above Fixing merged cell exports from Excel
Unpivot Columns Turns column headers into row values Reshaping wide data into tall data
Merge Queries Joins two tables together (like SQL JOIN) Combining related tables
Split Column Splits one column into two by a delimiter Separating first and last names
Change Data Type Sets the correct type (text, number, date) Making sure dates are read as dates
Add Custom Column Creates a new column using an M formula Row-level calculations at query stage
Remove Rows Removes top rows, blank rows, errors Cleaning header junk from messy files

Step 3: Data Modeling

After cleaning your data, you move to the Model view. This is where you define how your tables relate to each other.

The Star Schema

The recommended structure for Power BI models is called a **star schema:

  • One central Fact table — this holds your transactions or events (sales, orders, payments)
  • Multiple Dimension tables around it — these describe the facts (customers, products, dates, regions)

Relationships go from the dimension table to the fact table on a one-to-many basis.

Types of relationships:

Cardinality Meaning Example
One-to-many (1:*) One record in table A matches many in table B One customer → many orders
Many-to-many (:) Both sides have multiple matches Students ↔ courses (needs a bridge table)
One-to-one (1:1) Each record matches exactly one Employee → employee detail table

Cross filter direction
Relationships have a filter direction — either Single or Both. Single means filters flow one way (from dimension to fact). Both means filters flow both ways. We were told to stick with Single unless you have a specific reason to change it.

Date Table

One big thing we learned — always create a dedicated Date table. Mark it as a Date Table in the model settings. DAX time intelligence functions absolutely require this to work correctly.

Step 4: DAX — The Formula Language

DAX stands for Data Analysis Expressions. It's the language used to write formulas in Power BI. It looks similar to Excel but behaves very differently.

The biggest mindset shift: in Excel you write formulas for individual cells. In DAX, you write formulas for entire columns or measures, and the filter context changes the result depending on where it's used in the report.

DAX functions we covered:

Basic aggregations:

  • SUM() — adds up a column
  • AVERAGE() — average of a column
  • COUNT() / COUNTROWS() — counts values or rows
  • MIN() / MAX() — smallest or largest value
  • DIVIDE() — safe division (handles divide by zero automatically)

Logical functions:

  • IF() — if/else logic
  • SWITCH() — cleaner alternative to nested IFs

Filter functions:

  • CALCULATE() — the most important DAX function. Evaluates an expression in a modified filter context
  • FILTER() — returns a filtered table
  • ALL() — removes filters from a column or table
  • ALLEXCEPT() — removes all filters except the ones you specify

Relationship functions:

  • RELATED() — pulls a value from a related table (like VLOOKUP)
  • RELATEDTABLE() — returns the related table

Time intelligence functions:

  • TOTALYTD() — year-to-date total
  • TOTALQTD() — quarter-to-date total
  • SAMEPERIODLASTYEAR() — compares to the same period last year
  • DATEADD() — shifts a date period forward or backward

CALCULATE was the hardest one to understand. Basically — it lets you change the filter context of any measure. Once you get it, everything else makes sense.

Step 5: Building Visuals

This is the fun part! The Report view is a drag-and-drop canvas. You place visuals, connect them to your measures and dimensions, and build your report page.

Visual types we used:

Visual Best used for
Bar / Column chart Comparing categories
Line chart Showing trends over time
Pie / Donut chart Part-to-whole (max 5 slices!)
Card visual Displaying a single KPI number
Matrix Pivot-table style breakdowns with subtotals
Table Showing detailed row-level data
Map Plotting values geographically
Slicer Filter controls that users click on the canvas
Scatter chart Showing correlation between two measures
Waterfall chart Showing how values build up or break down

Design rules our lecturer gave us:

  • One insight per visual — don't try to show everything in one chart
  • Maximum 5 to 6 visuals per report page
  • Always label your axes
  • Use slicers to let users filter the report themselves
  • Don't use pie charts with more than 5 slices — they become unreadable
  • Consistent colours across the whole report
  • If a stakeholder has to ask what they're looking at, the design has failed

Interactions between visuals

By default, clicking on one visual filters all the others on the page. You can customise this under Format → Edit interactions to control which visuals get filtered and which don't.

Step 6: Exporting / Downloading Your Table

Sometimes you need to get your cleaned data OUT of Power BI as a file.

Method 1 — From Power Query Editor:

  1. Open Power Query Editor (Home → Transform data)
  2. Select your table
  3. Click File → Export → choose CSV
  4. Save to your PC

Method 2 — From a Table Visual (most common):

  1. Add a Table visual to your report canvas
  2. Click the three dots (…) on the visual
  3. Click Export data
  4. Choose Underlying data → Export
  5. A .xlsx or .csv downloads automatically

Method 3 — From Power BI Service:

  1. Publish your report to app.powerbi.com
  2. Open it in the browser
  3. Hover over the visual → three dots (…) → Export data
  4. Choose your format and download

Step 7: Publishing and Sharing

Once your report is done, you publish it to the Power BI Service.

Home → Publish → Select your Workspace

From the Service you can:

  • Create a Dashboard by pinning tiles from your report
  • Set a scheduled data refresh so your report stays up to date automatically
  • Share the report with colleagues by email or link
  • Embed the report into Microsoft Teams, SharePoint, or a website
  • Set up Row-Level Security (RLS) so different users see different data

Dashboard vs Report — I kept confusing these:

  • A Report has multiple pages, detailed visuals, full interactivity
  • A Dashboard is a single page of pinned tiles — a quick overview for monitoring KPIs