Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have the following measure:
Solved! Go to Solution.
Wrapped your measure in a SUMX, so we iterate each of the projects like you have in the table, and the total sums all those values
SUMX(
VALUES( Table[project number],
CALCULATE(
sumx(
FILTER('Month Table with weeks',
DATE(YEAR(CALCULATE(MIN(Project[Project Start]), ALL('Month Table with weeks'))), MONTH(CALCULATE(MIN(Project[Project Start]), ALL('Month Table with weeks'))), 1) <= MIN('Month Table with weeks'[First day of Month])
&&
DATE(YEAR(CALCULATE(MIN(Project[Project End]), ALL('Month Table with weeks'))), MONTH(CALCULATE(MIN(Project[Project End]), ALL('Month Table with weeks'))), 1) >= MAX('Month Table with weeks'[First day of Month]
)
),
[Project Load]
)
)
)
Wrapped your measure in a SUMX, so we iterate each of the projects like you have in the table, and the total sums all those values
SUMX(
VALUES( Table[project number],
CALCULATE(
sumx(
FILTER('Month Table with weeks',
DATE(YEAR(CALCULATE(MIN(Project[Project Start]), ALL('Month Table with weeks'))), MONTH(CALCULATE(MIN(Project[Project Start]), ALL('Month Table with weeks'))), 1) <= MIN('Month Table with weeks'[First day of Month])
&&
DATE(YEAR(CALCULATE(MIN(Project[Project End]), ALL('Month Table with weeks'))), MONTH(CALCULATE(MIN(Project[Project End]), ALL('Month Table with weeks'))), 1) >= MAX('Month Table with weeks'[First day of Month]
)
),
[Project Load]
)
)
)
This worked perfectly! I just had to add a filter in the value clause
here is the complete dax query:
@Swiya
monthly_project_value =
SUMX (
VALUES ( 'Month Table with weeks'[First day of Month] ), -- Ensures row-wise calculation
VAR MinStartDate = CALCULATE ( MIN ( Project[Project Start] ), ALL ( 'Month Table with weeks' ) )
VAR MaxEndDate = CALCULATE ( MIN ( Project[Project End] ), ALL ( 'Month Table with weeks' ) )
RETURN
IF (
DATE ( YEAR ( MinStartDate ), MONTH ( MinStartDate ), 1 ) <= MIN ( 'Month Table with weeks'[First day of Month] )
&&
DATE ( YEAR ( MaxEndDate ), MONTH ( MaxEndDate ), 1 ) >= MAX ( 'Month Table with weeks'[First day of Month] ),
[Project Load], -- Use your existing measure for the project value
BLANK () -- Hide values if the project is not live in that month
)
)
Proud to be a Super User!
This is also not working
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |