Forum Discussion
jnguyen21
Helper I
4 years agoMatrix Total is Not Correct - Specific Date
I'm putting together data that shows actuals up to a given month, and the rest of the year budget. The issue I am having is the total is not adding up correctly for the Budget ROY Column. The logic i...
- 4 years ago
I was able to find my issue by referencing the below video
amitchandak
Super User
4 years agojnguyen21 , Based on the row/group by of you visual, change like
Budget ROY =
var first_day = min('Calendar'[FirstDayofYear])
var last_day = max('Calendar'[LastDayOfPeriod])
return
Sumx(values('Calendar'[Fiscal Period]) , IF(SELECTEDVALUE('Calendar'[LastDayOfPeriod]) )>= first_day && SELECTEDVALUE('Calendar'[LastDayOfPeriod]) <=last_day,[Budget],0) )