Forum Discussion

o0llied2's avatar
o0llied2
Frequent Visitor
8 months ago
Solved

Determining best or worst project

Dear Power BI community,   First of all i want to wish you all the best in 2026 and thank you for possibility attempting to help resolve my issue.   For a dashboard, i am trying to determine the ...
  • o0llied2's avatar
    8 months ago

    The issue was not the ranking logic itself, but how the data was being filtered and grouped.

    1. We removed DimProjectId from the calculation
      Even though it is the technical key, all reporting is done on Projectnummer.
      Including DimProjectId caused the calculation to run at a lower grain, which resulted in the wrong project being selected.
      Once we removed it, the correct project was ranked as best/worst.

    2. We fixed the date filtering in the margin measures
      The active calendar relationship interfered with filtering by Opdracht[Opleveringsdatum].
      We solved this by clearing the calendar filter and explicitly applying the date filter to Opleveringsdatum.

    After these changes, the correct best and worst projects are selected, and the result is consistent across weeks and years.