Forum Discussion
Creating a Sum Based on Month
- Anonymous1 year ago
Hi BJP99
Please try the following Dax:(Jan - Aug) = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),MONTH('Table'[Date])>=1 && MONTH('Table'[Date])<=8 && 'Table'[Account]=EARLIER('Table'[Account])))Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi BJP99
Based on your needs, I have created the following table.
Then create a calculate column:
(Jan - Aug) = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),MONTH('Table'[Date])>=1 && MONTH('Table'[Date])<=8))
Drag the corresponding field to the matrix visual.
Drag to hide unwanted columns:
Solved: Matrix - Hide a column in visual but consider in c... - Microsoft Fabric Community
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- BJP991 year agoNew Member
Hi, thank you for putting this together. Unfortunately it is giving me the same value for everything.
- Nonessential1 year agoFrequent Visitor
Hi, try
Jan - Aug =CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Month] IN {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug"}))Or if you have Month Numbers;Jan - Aug =CALCULATE(SUM('Table'[Value]),'Table'[Month(number)>=1&&'Table'[Month(number)<=8])) - Anonymous1 year agoNot applicable
Hi BJP99
Please try the following Dax:(Jan - Aug) = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),MONTH('Table'[Date])>=1 && MONTH('Table'[Date])<=8 && 'Table'[Account]=EARLIER('Table'[Account])))Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.