Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
This is a replica to a previous question which was unsolved
I want to calculate (correctly) for every user in my model the number of:
ideas proposed, projects being involved in and challenges involved in
The tables I'm using are the following:
DimUsers[userID] <--> FactIdeas[userID]
DimUsers[userID] <--> FactProjects[userID]
DimUsers[userID] <--> FactChallenges[userID]
(inactive relationships)
I thought of adding in DimUsers a column for each quantity I want to calculate .
Problem (of course) is that circular dependecy prevents this - despite following
the indications given in
https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/
For instance, the first calculated with
Hi, @andrea_chiappo
Could you share some sample data and expected results with OneDrive for Business? Do mask sensitive data before uploading,
By using 'Calculate', we are asking to transform the current row content into a filter context and this modifies the dependency list. For further information, you may refer the document .
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @andrea_chiappo ,
Just believe that the relationship between the table is one to many correct?
How are you transposing the column to the measure are you making the exact formula?
Be aware that measures are based on context so depending on the parameters, filters, columns, and so on that you add to your measure an to your visualization the result may be incorrect within the context, believe that's what is happening on the second image where you have the total correct but the lines don't have any values.
Looking at whar you are posting don't believe it's necessary yo have complex calculations on the information to return the values you need.
Can you share some sample data or and PBIX mockup with expected result? If informantion is sensitive can you share it trough private message?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks for your answer Felix, which was also very teling. Howerver the hint to the SQBLI page was eye-opening.
Specifically, using ALLEXCEPT as a first filter in CALCULATE did the magic