Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
akhaliq7
Post Prodigy
Post Prodigy

Cleaning a dimension table correctly

What is the steps required to clean a dimension table that is sourced from a relational database. The dimension table I am referring to contains more rows than my fact table. Can someone provide me with a set of steps they take if any. 

4 REPLIES 4
amitchandak
Super User
Super User

@akhaliq7 , Remove duplicates. Add Index columns

 

Watch Video 2,3,4 in this series

https://www.youtube.com/playlist?list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb

 

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

it already has the duplicates removed and it already has a primary key, Just has too many rows that are not in the fact table

You might need to run the Trim and Clean transformations (under Transform -> Format in the ribbon) before removing the duplicates to make sure there aren't any rogue spaces which will not be picked up when removing duplicates. Aslo beware of how the values are spelt: capitals and lower case are treated as different values in Power Query

After removing duplicates

duplicates.png

 

Otherwise, create a new one?

dimension.gif

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






my question is related more towards matching the number of rows in my dimension table to my fact table just want to know what the best practices someone had suggested in another forum to use an inner join in the data source 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors