r/agiledatamodeling • • Sep 09 '25

HELP! Two fact tables with a many-to-many issue

2 Upvotes

Hey everyone, I’m learning data modeling and ran into a tricky situation that’s a bit above my current level.

I’ve got a model with a few dimensions, but the main part is two fact tables: Orders and PurchaseOrders. The messy part is:

  • One order can turn into multiple purchase orders (so the order ID shows up several times).

  • Some orders never actually turn into purchase orders (so their ID doesn’t show up there at all).

  • Sometimes there are orders without IDs at all (nulls in the order table), since an order can be placed without first entering one.

At first I thought I could handle it using this approach: https://youtu.be/4pxJXwrfNKs?si=ixjdZw4YAu5X0GRq&t=490.
But I know many-to-many relationships usually aren’t ideal. I’ve attached a small example of my model.

What I really need to pull from this is stuff like: “How many days did it take for an order to become a purchase?”

I tried asking ChatGPT and Copilot, and even experimented with a bridge table, but couldn’t get it to work. Copilot suggested making a separate table with only the purchases that have orders, just to calculate some metrics. But I’m not sure if adding another table is really the best way to go.

Any ideas or suggestions would be super helpful—thanks in advance!


r/agiledatamodeling • • Dec 05 '25

How would you choose between star schema vs one big table (OBT) data models for big data reporting without explicit enterprise data warehouse requirements?

Thumbnail reddit.com
2 Upvotes

r/agiledatamodeling • • Oct 31 '25

Model freeze deferred tweaks now next cycle’s backlog is exploding. How do you stop the mess?

3 Upvotes

Hey so ,Froze a model mid-release, deferred all tweaks ship was clean… but next cycle’s backlog is chaos: 3–5 retrains, 2–3 evals, A/B setup, back-fill + audit, model-card sign-off

One change → 10+ tickets. Velocity dead, grooming endless. How do you contain it???


r/agiledatamodeling • • Nov 11 '25

Star Schema - Common Mistakes

Thumbnail linkedin.com
4 Upvotes

r/agiledatamodeling • • Dec 07 '25

Roast my Star Schema (PowerBI)

Post image
5 Upvotes

Please rip it as approproate. I used this AI-plugin and this is what it produced from my base CSV. I'm trying to verify if this is correct, but not sure if I need more dimensions. Did it miss any?

-Data is appointment records for public DMV offices (think appointments and data about their shows/no-shows, appointment type.)

-BI goal: Track customer experience by different service centers, appointment type, expected vs. actual wait times, (what factors led to longer wait times.)

Also want to analyze customer no-shows by date, location, appointment type, are there any correlating factors that influenced no-shows, how many no-shows were rebookings?

It created one fact and 6 DIM tables. It also added Date and Time dimensions, do I need both separately or could I merge them into one Date-Time? Or would you not want to?


r/agiledatamodeling • • Feb 10 '26

What is Ontology? ELI5 Please!

8 Upvotes

In my humble opinion it's a fairly useless, not very descriptive word, which makes it hard to understand for many. Compared to other words, it's not great. But let's press on.

Ontology is a combination of two words.

  1. The Greek "Ontos" , meaning "being, or existing"

  2. and the suffix "-logy" which means "the study of".

So it literally means

"the study of things that exist".

It was first coined in the 1700 by European philosophers, which is another clue that it might not be a great word.

Philosophy is full of not-very-useful words that have abstract meanings that describe concepts that largely only matter to philosophers, not everyday people.

Which is what makes it so confusing to many, but really it's quite simple:

It just means perceiving and studying the stuff that exists around you. Look around your room right now, take note of the objects in it. The people present. The color of the walls. the brand of monitor you're using to read this. The temperature of the air.

Congratulations, you're practicing ontology! That's really it, a small child could do it. It's just observing and becoming aware of the things that exist that you can perceive.

OK, so what did we just do there? What are things that exist? Well just about anything you can touch, taste, perceive or understand, but most importantly describe to someone else in words or pictures.

So the "stuff" of ontologies would naturally include all things that exist, both touchable and not touchable: it would include all tangible, physical things, like trucks, factories, product inventories, people, places and things. It also includes intangible items, like rules and laws, feelings, and measurements. These things don't physically exist, but they exist metaphorically.

---

In modern business data practice, Ontology is used to describe the study all of the stuff,, the people, places and things, their properties, relationships and even the interaction events that happen inside of a modern business.

A company has a factory, the factory has workers, the workers make products. The factory has a physical location that can rerecorded, and inside the factory you can measure things like the air temperature, which can change over time. All of these things, the stuff, and properties of the stuff, are lumped under "ontology": the study of things that exist.

It has a lot of overlap with Digital Twinning and Data Modeling. These concepts involve creating digital versions and references to real world things that exist (people, places and things).

Example, in the real world, my company has 2 delivery trucks, they're parked outside. They exist, I can physically touch them and drive them.

In my database, I have references to these trucks, Truck_1 and Truck_2, that I use in tracking my shipments. Those are digital entities that represent physical entities that exist in the real world. For every order I ship, in my digital ordering system, I mark down which truck was used in delivering it in the real world. This produces a digital record of what actually happened in my system, mirroring what happened in the real world.

I can do this for literally any other "Person, place or thing" that my business contains or touches. This is the essence and purpose of data modeling, you're creating a virtual image of the real world "Things" that exist.

Ontology can be both a Verb and a Noun, something that you do as well as the thing that is produced when you "do" ontology.

Ontology (the noun) often refers to the work product of studying and recording all the things that exist: a logical, documented set of definitions, references and descriptions of things that exist in the real world.


r/agiledatamodeling • • Mar 21 '25

Kimball vs. One Big Table vs. Data Vault in Data Modeling

Thumbnail
medium.com
2 Upvotes

r/agiledatamodeling • • Mar 21 '25

Agile Data Modeling: From Domain to Physical Modeling

Thumbnail
agiledata.org
2 Upvotes

r/agiledatamodeling • • Mar 21 '25

Free download The Data Warehouse Toolkit (Kimball, Ross) 3rd edition

Thumbnail ia801609.us.archive.org
3 Upvotes

r/agiledatamodeling • • Sep 10 '25

PowerBI model with fact table and dimensions gives wrong totals

6 Upvotes

Hi all I am really in hurry and I cannot figure this out. I have a semantic model in PowerBI with one fact table called Transactions. Then I have Customers table and Products table connected to the fact with CustomerID and ProductID. I also added a Calendar table.

The problem is that when I connect all three dimensions to the fact table I get wrong totals and some numbers look duplicated. But if I remove for example the Calendar then measures like YTD stop working.

So basically it is FactTransactions in the middle and three dimensions around it Customers Products Calendar. I am not sure if I should create a bridge or change relationships. What is the fastest way to fix this so I can get correct totals without redesign everything.

Thanks a lot for any help


r/agiledatamodeling • • Sep 10 '25

Trouble with relationships in my PowerBI model

2 Upvotes

Hi all I am stuck with my model again and I am a bit in hurry. I have a smantic model already and some tables connected but I always get wrong results in visuals. I try to connect fact table with two dimension tables but then my numbers duplicate. If I remove relationship then my measures stop working.

I feel like I miss some easy trick with relationships or maybe I should use bridge table but I am not sure. What is the fastest way to fix this so I can just get correct totals without spending hours on redesign.

Thanks a lot for any help


r/agiledatamodeling • • Sep 01 '26

Positorium, a database for facts that disagree

8 Upvotes

Most databases are designed to answer: "What is the value now?"

They can model a more awkward question too, but usually require additional machinery:

Who claimed what, when was it considered true, how certain were they, and what did we believe before it was corrected?

I built Positorium as an experimental embedded evidence database for that second kind of question. Rather than overwriting one claim with another, it preserves contradictory claims together with their sources, certainty, effective time, assertion time, corrections, and retractions.

It is not intended to replace PostgreSQL or another operational database. The idea is to use it as a focused evidence layer for things like compliance, investigations, conflicting master data, or any process where retaining the history of disagreement matters.

The new Python package embeds the Rust engine directly in the Python process, so there is no separate server. It supports both ephemeral in-memory databases and append-only persistent stores.

Install the beta with:

python -m pip install --pre positorium

A small example:

import positorium

with positorium.Database.memory() as database:
    result = database.execute_one(
        """
        add role organization, risk_assessment;

        add posit
          [{(+company, organization)}, "Northstar Trading", @NOW],
          [{(company, risk_assessment)}, "high risk", '2026-01-12'],
          [{(company, risk_assessment)}, "needs review", '2026-01-12'];

        search
          [{(?company, organization)}, ?organization, *],
          [{(?company, risk_assessment)}, ?assessment, *]
        return ?organization, ?assessment;
        """
    )

    for row in result.to_dicts(text=True):
        print(row)

This returns both assessments rather than choosing a winner or overwriting one of them.

Positorium is still an early beta and is intended for evaluation rather than production deployment. Wheels are available for CPython 3.9+ on Linux, macOS, and Windows.

If you have a small dataset where sources conflict or corrections matter, try the beta:


r/agiledatamodeling • • Nov 20 '25

Why Power BI loves a Star Schema

Thumbnail
youtube.com
7 Upvotes

r/agiledatamodeling • • Nov 04 '25

Data Modeling: What is the most important concept in data modeling to you?

Thumbnail reddit.com
3 Upvotes

r/agiledatamodeling • • Jun 26 '25

Mastering Agile Data Modeling for Tableau Dashboards

2 Upvotes

Agile data modeling is key to unlocking Tableau’s full potential for dynamic high performance dashboards in fast paced projects. By embracing iterative, flexible data structures, teams can deliver real time insights and adapt to evolving business needs. Here’s how to optimize agile data modeling for Tableau with SEO friendly strategies to streamline workflows and boost dashboard efficiency.

Why Agile Data Modeling Powers Tableau

Tableau dashboards thrive on clean well structured data, but rigid models can slow down agile sprints. Agile data modeling enables rapid iterations, ensuring data pipelines align with Tableau’s visualization demands. Whether tracking sales trends, customer behavior, or operational KPIs, these practices drive actionable insights and scalability.

Best Practices for Agile Data Modeling with Tableau

  1. Choose Flexible Schemas: Star schemas optimize Tableau’s query performance, supporting visuals like trend lines or heatmaps. For agility use denormalized tables to handle mid sprint requirement changes without breaking dashboards.

  2. Automate with Modern Tools: Tools like dbt or Inzata simplify data model updates, integrating seamlessly with Tableau. For instance, Inzata’s AI-driven data prep can unify disparate datasets, enabling real time insights for complex dashboards.

  3. Iterate for Performance: Leverage agile sprints to refine models based on Tableau’s needs. Use scatter plots or box plots to test correlations (e.g. sales vs. customer engagement) and optimize queries for speed.

  4. Build for Scalability: Design models to support Tableau’s advanced visuals like forecasting or clustering. Ensure data structures scale for large datasets, maintaining dashboard responsiveness.

Practical Example: Sales Dashboard

For a sales dashboard, create a flat table with metrics like “revenue” “customer acquisition” and “deal close rate.” Use Tableau’s Key Influencers visual to identify drivers of sales success such as region or campaign type. Automate model updates with dbt to adapt to new metrics mid project, keeping dashboards agile and accurate.Keywords: Tableau sales dashboard, Key Influencers, visual agile data pipelines real time business insights.

Tips for Success

  1. Collaborate Across Teams: Align data engineers and Tableau developers in sprint planning to sync models with visualization goals.

  2. Test Iteratively: Use hypothesis testing in Tableau to validate correlations, ensuring models deliver meaningful insights.

  3. Leverage AI Tools: Integrate platforms like Inzata to automate data prep, enhancing Tableau’s real time capabilities.

By mastering agile data modeling, you can build Tableau dashboards that are fast, flexible, and future proof driving smarter decisions in any industry. Share your favorite Tableau modeling hacks below!


r/agiledatamodeling • • Sep 13 '25

The 30 Second Trick That Makes Data Modeling ‘Click’ for Most People

Post image
24 Upvotes

When teaching data modeling, one of the most effective analogies I’ve found is nouns and verbs.

Nouns are people, places and things. Verbs are action words.

We all learned this in first grade.

Many people learning Data Modeling get stopped cold the first time they run into these two concepts: Facts and Dimensions. They’re foreign words with zero business context.

All the famous Kimball and Inmon Data Modeling books and tools say the same thing “First classify your data into Facts and Attributes with the appropriate grain.”

What?!

What the heck is a Fact? A grain of what?

The easiest way to begin Data Modeling: Think of Facts as ‘Verbs’ and ‘Dimensions’ as Nouns

When teaching data modeling, one of the most effective analogies I’ve found is nouns and verbs. Nouns are people, places and things. Verbs are action words. This simple framing maps directly onto the two fundamental building blocks of any analytic model: facts and dimensions. And it also echoes the classic guidance from data warehouse pioneers like Ralph Kimball and Bill Inmon, who both emphasized the importance of correctly identifying events (facts) and descriptors (attributes/dimensions) in their work.

Facts: The Verbs of Your Business

Think of facts as verbs — the actions or events happening in the real world that your business cares about. A fact table should be a faithful record of those events.

Consider this one-line record of somethingn that happened. How would we classify it into data elements?

“The dog jumped over the backyard fence at night”

What’s the fact? (hint: What’s the verb?)

A: ‘Jumped’

What are the dimensions? (What are the nouns?)

“The dog jumped over the backyard wall at night”

Who? The dog

When? At night

Where? The backyard

Over what? The fence

Congratulations, you’ve created your first data model!

In sales analytics, that fact is obvious: a sale. Each row in the sales fact table represents one occurrence of that event.

Some characteristics of facts:

  • Events, not things: Facts capture what happened — a sale, a shipment, a payment, a click.

  • Quantitative: They contain measures like revenue, quantity, or units shipped — numbers you can add, average, or otherwise aggregate.

  • Usually nameless: You don’t typically “name” a sale or a click; they are events, not entities.

  • High volume: Fact tables usually dwarf dimension tables in row count, since events occur constantly.

  • Unchangeable: Facts are the historical record of something that happened, they are never updated. If a customer cancels an order they placed, that doesn’t remove the fact that the original order was placed.

Think of fact data as an always-moving river that only flows in one direction: forward.

Sanity Checks from the Masters

Here are a few quick checks — rooted in both the nouns/verbs analogy and best practices from Kimball and Inmon:

  1. Row counts: Fact tables nearly always have more rows than any related dimension. (Millions of sales, but only thousands of customers.)

  2. Naming: Dimensions carry names and descriptors; facts do not. Customer Name makes sense, Sale Name does not.

  3. Math check: Facts are what you apply all kinds of math to — sums, averages, counts, medians. Dimensions can be counted, but that’s usually it for the math. it. You can’t take the average of “Eye Color” “States” or “Customers.”

Learn how to map this simple framing directly onto the two fundamental building blocks of any analytic model: facts and dimensions.


r/agiledatamodeling • • Sep 30 '25

How do you handle database schema changes in an agile environment when sprints are locked and changes are discouraged?

2 Upvotes

In our agile project, once a sprint is agreed upon, we’re supposed to avoid changes to maintain focus and stability. However, new requirements often require database schema updates like adding tables or modifying fields. How do you manage these database changes when sprints are locked? Do you defer all schema updates to the next sprint, or are there ways to safely incorporate critical changes mid sprint without disrupting the team’s workflow?


r/agiledatamodeling • • Sep 19 '25

how do you balance speed vs. data quality in agile data modeling?

4 Upvotes

For those using agile approaches in data modeling, how do you balance speed of delivery with maintaining data quality and consistency?


r/agiledatamodeling • • Sep 09 '25

General Challenges in BI and Visualization Tools for Agile Data Modeling

5 Upvotes

Data Integration, many tools struggle with seamless integration across diverse data sources, especially in fast-paced agile environments where data models evolve rapidly.

Scalability vs. Speed- Balancing performance with large datasets while maintaining agility is a constant issue. Tools often slow down or require optimization as data grows.

Collaboration- Agile teams need tools that support collaboration, but some BI platforms (e.g., Tableau) can feel clunky for real-time teamwork or version control.

Cost vs. Value- Many tools are expensive, and justifying the cost for smaller teams or projects can be tough.

User Adoption- Non-technical stakeholders in agile teams sometimes struggle with complex interfaces or require extensive training.

Which BI/visualization tools are you using in your agile data modeling projects?

What challenges have you faced with these tools, and how did you overcome them?

How do you balance ease of use with powerful functionality in your tool choices?

Looking forward to hearing your thoughts and experiences! Let’s share some tips and tricks to make our data modeling lives easier


r/agiledatamodeling • • Sep 04 '25

Are Companies Investing Enough in Data Models?

6 Upvotes

Not nearly enough companies are. While companies pour billions into BI tools, cloud platforms, and AI solutions, the data model the critical foundation, often gets overlooked or underfunded.

  1. Focus on Tools Over Foundations:

    • Many organizations prioritize shiny dashboards and off-the-shelf BI platforms (e.g., Tableau, Power BI) over the less glamorous work of data modeling. A 2023 Gartner report highlighted that 60% of analytics projects fail to deliver expected value due to poor data quality or structure—issues rooted in inadequate data models.

    • Everyone wants a sexy dashboard, but nobody wants to talk about the messy data model behind it. That’s where the real work is. Companies often rush to visualization, assuming the data will “sort itself out.”

  2. Lack of Skilled Talent:

    • Building a robust data model requires expertise in data architecture, domain knowledge, and business strategy. However, there’s a shortage of data modelers and architects. A 2024 LinkedIn analysis showed that demand for data engineers and architects grew 35% year-over-year, but supply isn’t keeping up.

    • Companies often rely on generalist data analysts or developers who may lack the specialized skills to design scalable, future-proof models. This leads to quick-and-dirty solutions that crumble under complexity.

  3. Short-Term Thinking:

    • Many organizations treat data modeling as a one-time task rather than an ongoing investment. A 2025 McKinsey report on AI adoption noted that 70% of companies struggle to scale AI because of fragmented or poorly designed data architectures.

    • Companies spend millions on AI but won’t pay for a proper data model. It’s like buying a Ferrari and running it on flat tires.

  4. Siloed Data and Legacy Systems:

    • Legacy systems and siloed data sources (e.g., CRM, ERP, marketing platforms) create complexity that many organizations fail to address through unified data models. A 2024 Forrester study found that 65% of enterprises still struggle with data integration, leading to inconsistent models that undermine analytics and AI.

    • This is compounded by organizational silos, where departments build their own models without alignment, resulting in duplication and inconsistency.

  5. Underestimating AI’s Dependency on Data Models:

    • As AI adoption accelerates, companies are realizing too late that their data models aren’t ready. A 2025 IDC report predicted that 80% of AI projects will fail to deliver ROI by 2027 due to inadequate data foundations.

    • AI is only as good as the data model feeding it. Garbage in, garbage out. Why is this still a surprise in 2025?

What’s Needed to Get It Right? To build effective data models, companies need to shift their mindset and investments:

  1. Prioritize Data Modeling as a Strategic Asset:

    • Treat data modeling as a core competency, not an afterthought. This means allocating budget and time to design models that align with business goals and scale with growth.

    • Example: Companies like Netflix and Amazon invest heavily in data modeling to ensure their analytics and recommendation engines are fast, accurate, and adaptable.

  2. Invest in Talent and Training:

    • Hire or train specialized data architects and modelers who understand both technical and business domains. Cross-functional teams that include business stakeholders can ensure models reflect real-world needs.

    • Upskilling programs, like those offered by Google Cloud or AWS, can help bridge the talent gap.

  3. Adopt Modern Data Architectures:

    • Embrace frameworks like data meshes or data fabrics to create flexible, decentralized models that integrate diverse sources while maintaining consistency.

    • Tools like Snowflake or Databricks can support modern data modeling, but they require thoughtful implementation to avoid perpetuating bad habits.

  4. Plan for AI and Scalability:

    • Design models with AI in mind, ensuring they support real-time data, unstructured data (e.g., text, images), and machine learning workflows.

    • Incorporate metadata management and data governance to maintain quality and traceability as data grows.

  5. Measure and Iterate:

    • Continuously assess the effectiveness of data models through metrics like query performance, user adoption, and decision-making impact. Iterate based on feedback and evolving needs.

    • A 2024 Harvard Business Review article emphasized that iterative data modeling is key to sustaining analytics and AI success.


r/agiledatamodeling • • Nov 22 '25

Is one big table (OBT) actually a data modeling methodology?

Thumbnail reddit.com
4 Upvotes

r/agiledatamodeling • • Sep 23 '25

question about agile data modeling

1 Upvotes

does agile data modeling really improve database design efficiency?


r/agiledatamodeling • • Nov 21 '25

Something New Is Coming for Power BI Users

2 Upvotes

I’m looking for a few Power BI users who want to try out something new I’ve been working on. It’s a tool that helps with shaping data models and building out clean relationships, and it can generate Fact and Dimension tables you can plug straight into PBI.

I’m keeping the details quiet for now, but if you’re curious and want to be part of a small early beta group, DM me and I’ll share more.


r/agiledatamodeling • • Sep 12 '25

What’s the real cost of skipping metadata governance when speed is king and have any of you regretted it?

4 Upvotes

What’s the real cost of skipping metadata governance when speed is king and have any of you regretted it?