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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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