<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>QueryAndChart</title>
  <subtitle>Power BI and DAX tutorials built on real data, with every measure result checked before publication.</subtitle>
  <link href="https://queryandchart.com/feed.xml" rel="self"/>
  <link href="https://queryandchart.com/"/>
  <updated>2026-11-11T00:00:00-07:00</updated>
  <id>https://queryandchart.com/</id>

  <entry>
    <title>Build a Power BI date table in DAX: CALENDAR and ADDCOLUMNS, with no gaps</title>
    <link href="https://queryandchart.com/guides/date-table-dax/"/>
    <id>https://queryandchart.com/guides/date-table-dax/</id>
    <updated>2026-11-11T00:00:00-07:00</updated>
    <summary>Build a date table in DAX with CALENDAR and ADDCOLUMNS: 731 rows, 1 January 2024 to 31 December 2025, no gaps. February 2024 has 29 days; February 2025 has 28. Results verified by identical generation in Python.</summary>
  </entry>

  <entry>
    <title>Power BI category share of total in DAX: one DIVIDE measure, no helper column</title>
    <link href="https://queryandchart.com/guides/category-share-of-total/"/>
    <id>https://queryandchart.com/guides/category-share-of-total/</id>
    <updated>2026-11-11T00:00:00-07:00</updated>
    <summary>Category share of total with one DIVIDE measure and ALL. January–October 2025: Desks 46.4%, Chairs 33.8%, Lamps 19.8%. Results verified by identical aggregation in Python against the same CSV.</summary>
  </entry>

  <entry>
    <title>Power BI year-to-date sales in DAX: TOTALYTD and YTD versus last year</title>
    <link href="https://queryandchart.com/guides/year-to-date-sales/"/>
    <id>https://queryandchart.com/guides/year-to-date-sales/</id>
    <updated>2026-11-11T00:00:00-07:00</updated>
    <summary>Year-to-date sales with TOTALYTD and YTD versus last year. Year to date through October 2025: $122,707 against $96,456 a year earlier, +27.2%. Results verified by identical aggregation in Python against the same CSV.</summary>
  </entry>

  <entry>
    <title>Power BI month-over-month change and a 3-month moving average in DAX</title>
    <link href="https://queryandchart.com/guides/month-over-month-moving-average/"/>
    <id>https://queryandchart.com/guides/month-over-month-moving-average/</id>
    <updated>2026-11-11T00:00:00-07:00</updated>
    <summary>Month-over-month change with PREVIOUSMONTH and a 3-month moving average with AVERAGEX over DATESINPERIOD. October 2025: $13,436 against $13,415 in September, +0.16%; the 3-month moving average is $13,377. Results verified by identical aggregation in Python against the same CSV.</summary>
  </entry>

  <entry>
    <title>Power BI year-over-year sales: a DAX measure that returns the right prior-year number</title>
    <link href="https://queryandchart.com/guides/year-over-year-sales/"/>
    <id>https://queryandchart.com/guides/year-over-year-sales/</id>
    <updated>2026-11-10T00:00:00-07:00</updated>
    <summary>Three DAX measures on a calendar table: Total Sales, Sales PY with SAMEPERIODLASTYEAR, and YoY % Change. October 2025: $13,436 against $10,995 a year earlier, +22.2%. Results verified by identical aggregation in Python against the same CSV.</summary>
  </entry>

  <entry>
    <title>Power BI running total and category rank in DAX, with no helper columns</title>
    <link href="https://queryandchart.com/guides/running-total-rank/"/>
    <id>https://queryandchart.com/guides/running-total-rank/</id>
    <updated>2026-11-10T00:00:00-07:00</updated>
    <summary>One CALCULATE measure for the running total and one RANKX measure for the category rank. The 2025 running total reaches $122,707 by October; Desks ranks first at $56,959. Results verified by identical aggregation in Python against the same CSV.</summary>
  </entry>
</feed>
