Skip to main content

Year Over Year calculation using Pivot Table



Instead of creating a formula outside of the pivot table, you can do this inside the pivot table.

Start from the image with column D empty. Drag Revenue a second time to the Values area.

Look in the Columns section of the Pivot Table Fields panel. You will see a tile called Values that appears below Date. Drag that tile so it is below the Date field. Your pivot table should look like this:

This pivot table has customers down the left side. Across the top are four columns: Sum of Revenue for 2021, 2022. Then Sum of Revenue2 for 2021 and 2022.

Double-click the Sum of Revenue2 heading in D4 to display the Value Field Settings dialog. Click on the tab for Show Values As.

Change the drop-down menu to % Difference From. Change the Base Field to Date. Change the Base Item to (Previous Item). Type a better name than Sum of Revenue2 - perhaps % Change. Click OK.

In the Value Field Settings dialog, choose the second tab, called Show Values As. In the top drop-down menu, choose % Difference From. The Base Field should be Date. The Base Item should be (previous).

You will have a mostly blank column D (because the pivot table can't calculate a percentage change for the first year. Right-click the D and choose Hide.

Comments

Popular posts from this blog

Power BI Version Control

 # Power BI Version Control — What Microsoft Recommends (and Why It Matters) If you're developing Power BI content in a team, stop treating .pbix files like final artifacts. Start treating Power BI like a software product. ✅ Use .pbip (Power BI Project) instead of .pbix ✅ Integrate with Git for proper source control ✅ Work in feature branches ✅ Merge via Pull Requests ✅ Deploy across Dev → Test → Prod workspaces Why this shift? .pbix is a binary file. You can't diff it. You can't properly review changes. You can't merge it cleanly. .pbip is text-based and folder-structured, separating: Report metadata Semantic model definition DAX queries Settings and resources This enables: Version history tracking Code reviews CI/CD pipelines Automated validation Scalable team collaboration Modern BI teams should operate like engineering teams. Governance, branching strategy, environment promotion, and source control are no longer optional — especially in Microsoft Fabric ecosystems. ...

Why Every BI Professional Needs to Learn Agentic AI in 2026

Meta Description:  Agentic AI is transforming business intelligence. Learn why BI professionals must embrace autonomous AI agents to stay relevant — with practical examples, skills to build, and a BI Lead's honest perspective on the shift. Tags:   Agentic AI  ·  Business Intelligence  ·  Power BI  ·  AI Agents  ·  Data Analytics  ·  Future of BI  ·  Career Growth Let me be blunt: if you're a BI professional in 2025 and you haven't started paying attention to agentic AI, you're already behind. I'm not saying that to scare you. I'm saying it because I've spent over a decade building dashboards, tuning SQL queries, and wrangling Power BI data models — and nothing in my career has shifted the landscape as fast as agentic AI. Not self-service analytics. Not cloud migration. Not even the first wave of AI/ML. This is different. And here's why. What Exactly Is Agentic AI? Forget the chatbot hype for a second. Agentic AI refer...

Quantum Computing

  Quantum computing is a new kind of computing that uses the laws of quantum physics to solve certain problems much faster than classical computers.  It doesn’t replace your laptop but can tackle very complex simulations, optimization, and cryptography‑style tasks that are intractable for ordinary machines.  *** ### What is quantum computing? Quantum computing is a computing paradigm that uses quantum‑mechanical phenomena—like superposition, entanglement, and interference—to represent and process information in new ways. Instead of classical bits (0 or 1), quantum computers use **qubits**, which can be in a mix of 0 and 1 at the same time, enabling parallel computation.  *** ### Classical bits vs. qubits - A **classical bit** is either 0 or 1; operations are deterministic and sequential.  - A **qubit** can be 0, 1, or any quantum “blend” of both, written as $$ \alpha|0\rangle + \beta|1\rangle $$, where $$ \alpha $$ and $$ \beta $$ are complex numbers capturing p...