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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
mp390988
Helper V
Helper V

Networkdays issue when totalling for Year level

Hi,

 

I have this calculated column in my dim date that displays the networkday for that particular month.

 

mp390988_0-1746107276395.png

 

I am running into issues when I create the following matrix visual, as you can see the figures are not displaying correctly at the year level. Ideally, what I want at the year level is the sum of the individual networkdays thus far. So since the visual only has months from Jan to Mar, it should sum up 23+20+21 = 64.

 

mp390988_1-1746107392490.png

 

Does anyone have the solution please?

1 ACCEPTED SOLUTION
saritasw
Resolver II
Resolver II

Hi @mp390988 ,


Thanks for sharing the screenshots.

 

Your DAX calculated column WorkingDaysPerMonth is correctly computing working days per month, but since it's a calculated column in the date table, using MAX(WorkingDaysPerMonth) in your matrix causes the year-level total to just show the max of the months (23), not the sum.

You want the year-level total to be the sum of working days for the visible months (Jan to Mar), which should be: 

23 (Jan) + 20 (Feb) + 21 (Mar) = 64

 

In my opinion, You should create a measure, not rely on the calculated column in the matrix.
DAX Measure:
TotalWorkingDays =
SUMX(
VALUES('dim Date'[MonthNum]),
MAX('dim Date'[WorkingDaysPerMonth])
)
Try it.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @mp390988,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @mp390988,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @mp390988,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

saritasw
Resolver II
Resolver II

Hi @mp390988 ,


Thanks for sharing the screenshots.

 

Your DAX calculated column WorkingDaysPerMonth is correctly computing working days per month, but since it's a calculated column in the date table, using MAX(WorkingDaysPerMonth) in your matrix causes the year-level total to just show the max of the months (23), not the sum.

You want the year-level total to be the sum of working days for the visible months (Jan to Mar), which should be: 

23 (Jan) + 20 (Feb) + 21 (Mar) = 64

 

In my opinion, You should create a measure, not rely on the calculated column in the matrix.
DAX Measure:
TotalWorkingDays =
SUMX(
VALUES('dim Date'[MonthNum]),
MAX('dim Date'[WorkingDaysPerMonth])
)
Try it.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.