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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mohammedkhan
Helper I
Helper I

Data Model

Dear Concern,

I would like to know where did i do wrong in the data model, need help 

 

mentione belowis the measure i created 

/*

Pop in 2017 = CALCULATE(SUMX('All States Population', 'All States Population'[Population]), FILTER('All States Population', 'All States Population'[Years] = 2017))

*/

Data ModelData ModelDue to Data ModelDue to Data Model

 

2 REPLIES 2
jdbuchanan71
Super User
Super User

@mohammedkhan 

All of your relationships are many to many bi-directional which is a nightmare to trouble shoot.  You should probably start with an into to DAX and modeling.  I suggest this one as it is free but also very good.

https://www.sqlbi.com/p/introducing-dax-video-course/

kentyler
Solution Sage
Solution Sage

For a start could you combine your income and population tables into just one fact table ? Do the "united states" and "all states" tables have different data for the same state and year. If not you could combine then. Then you would not need the many/many relationship to dates.

and that might make all your calculations work out more easily





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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