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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.