MSK Institute LogoMSK.Institute
HomeCourses
Book Free Demo➔Sign In
Free Demo➔
MSK Institute LogoMSK.Institute

Leading computer training academy in Shikohabad for software engineering, Python, web development, and digital literacy.

ISO 9001:2015 Certified Center
Follow & Connect
4.9

Programs & Admissions

  • All CoursesCatalog
  • Learning PathsRoadmaps
  • Student ProjectsShowcase
  • Live Classes & ScheduleLive
  • Upcoming Batches
  • Campuses & LocationsHub
  • Verify Certificates
  • Book Free Demo Class

Resources & Tools

  • Free Online Mock TestsAll Tests
  • NIELIT CCC Mock TestFree
  • Course & Career FinderQuiz
  • Study Material Hub
  • All MSK ToolsHub
  • Keyboard ShortcutsNew
  • TypeQuest Speed LabTyping
  • MSK Code PlaygroundCode
  • Interactive Tutorials
  • Quick Cheatsheets

Institute & Contact

  • About MSK Institute
  • Careers & InternshipsHiring
  • Publications & Blogs
  • Gali No. 3, Near Gyan Jyoti Public School,
    Adarsh Nagar, Shikohabad, Uttar Pradesh 283135
  • +91 83930 42166
  • mskshikohabad@gmail.com
  • Hours:Mon – Sat: 8:00 AM – 7:00 PM | Sun: 10:00 AM – 2:00 PM
  • 4.9 ★(38 Google Reviews)
© 2026 MSK Institute. All rights reserved.•Privacy Policy•Terms of Service•Disclaimer•Contact Us

Shikohabad's Leading Computer & Coding Academy

Home
Courses
Live
Material
Optimizing Data Models0%
Study MaterialsCheatsheet
Power BI for IntermediateProgress 0%
1.1Quick recap of Import, Modeling, DAX1.2Project requirements for Intermediate Level
6.1Optimizing Data Models6.2Query Diagnostics6.3Best Practices for Report Performance
HomeTutorialsPower BI for IntermediateOptimizing Data Models
Query Diagnostics

Optimizing Data Models

Beginner12 min read•Updated: 2026-11-18•By Er. Sumit Kumar (MSK Institute)
Study MaterialsCheatsheet

In corporate reporting, poorly optimized data models lead to massive .pbix file sizes (hundreds of megabytes), slow report refresh times, and sluggish user interactions. An intermediate Power BI developer must know how to eliminate memory waste and optimize the VertiPaq engine.


1. The Number One Culprit: Column Cardinality

Cardinality refers to the number of unique, distinct values in a column:

  • Low Cardinality: Gender (2 unique values: Male, Female), Status (3 unique values).
  • High Cardinality: DateTime with seconds (millions of unique timestamps), GUIDs, TransactionIDs.
Pro Tip
VERTIPAQ GOLDEN PRINCIPLE: Memory consumption is determined primarily by column cardinality, NOT total row count! A 10-million row table with low-cardinality columns can take less RAM than a 100,000-row table with 3 high-cardinality GUID columns.
1Cardinality Memory Comparison:
2Column Unique Values Memory Cost
3----------------------------------------------------
4Dim_Customer[Gender] 2 Negligible (Bytes)
5Fact_Sales[Region] 5 Negligible (Bytes)
6Fact_Sales[DateTime] 1,500,000 Massive RAM Hog! (Split Date and Time!)
7Fact_Sales[UUID] 10,000,000 Disaster! (Remove if not needed for joins)

2. Optimization Technique 1: Splitting DateTime Columns

Never import timestamps that combine Date and Time down to the second into a fact table!

1-- Before: Single Column (High Cardinality)
22025-03-15 14:22:19.450 --> 10,000,000 unique values in VertiPaq!
3 
4-- After: Split in Power Query into Two Columns
5Date Column: 2025-03-15 --> Only 365 unique values per year!
6Time Column: 14:00 --> Group by hour/minute: Max 1,440 unique values!
7Memory reduction: Often > 90%!

3. Optimization Technique 2: Disabling "Auto Date/Time"

By default, Power BI Desktop has a feature enabled called Auto Date/Time:

  • For EVERY SINGLE date column in your model, Power BI secretly creates a hidden internal calendar table with full year/month hierarchies.
  • If you have 10 tables with 3 date columns each, Power BI creates 30 hidden calendar tables in memory!

How to Disable Auto Date/Time (Mandatory for Professional Reports):

  1. 1
    In Power BI Desktop, click File → Options and settings → Options.
  2. 2
    Under Current File, select Data Load.
  3. 3
    Under Time Intelligence, UNCHECK Auto date/time.
  4. 4
    Replace it with your single central Dim_Date table. File sizes frequently drop by 50% immediately!

4. Optimization Technique 3: Removing Unnecessary Columns

  • If a column is not used in a relationship, a slicer, a visual, or a DAX formula: REMOVE IT in Power Query!
  • Removing surrogate keys or internal ETL audit fields (CreatedBy, SourceSystemID, RowChecksum) can halve model size.

Interactive Quiz• Knowledge Check

Multiple Choice Questions

Question 1
Which factor has the greatest influence on the memory consumption of a table in Power BI's VertiPaq engine?
Question 2
Why should DateTime columns containing timestamps down to the second be split into separate Date and Time columns?
Question 3
What negative impact does the default "Auto Date/Time" setting have on enterprise Power BI models?
Question 4
Where is Auto Date/Time disabled for the current Power BI report file?
Question 5
What should be done with technical primary keys or surrogate database keys in a fact table that are not used in any relationship or calculation?

Next Lesson

Query Diagnostics

Continue learning with hands-on practice, examples, and exercises in the upcoming topic.

Related Lessons

Previous LessonNext Lesson
Advanced Slicers and FiltersQuery Diagnostics

Practice Quiz

Test your understanding of this lesson with 5 questions. Each question has one correct answer.

12-Month Data Analysis Mastery Program

Master Full-Stack Data Analytics (Excel, SQL, Python, Power BI & Tableau)

Combine 15 complete courses, 150 chapters, 541 topics, live SQL/Power BI/Tableau dashboards, and Scikit-Learn capstones at MSK Institute Shikohabad or Live Online.

View Full CourseBook Free Demo
PreviousNext
PreviousPrevNext