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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
maximus84
Frequent Visitor

Calculated column with sum per month by product

Hi all! Help me, please.

I have a table. I want to create a custom column for calculating the sailing sum per month by each product. 

The value in each row of "Custom_Column" is the sailing sum per month by each product. I need help to write DAX construction for the "Custom_Column" creation. 

My vision of this table looks like

ProductIDSaleCountDateCustom_Column
152019-01-0124
182019-01-0224
1112019-01-0324
262019-01-0114
232019-01-0214
252019-01-0314
142019-02-0113
162019-02-0213
132019-02-0313
212019-02-0112
252019-02-0212
262019-02-0312

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

hi @maximus84 ,

 

Please check this measure.

Product Sum = CALCULATE(SUM('Table (2)'[SaleCount]),ALLEXCEPT('Table (2)','Table (2)'[ProductID]))

Capture.JPG

 

regards,

Naveen

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

hi @maximus84 ,

 

Please check this measure.

Product Sum = CALCULATE(SUM('Table (2)'[SaleCount]),ALLEXCEPT('Table (2)','Table (2)'[ProductID]))

Capture.JPG

 

regards,

Naveen

Thanx a lot to @Anonymous 

Anonymous
Not applicable

welcome @maximus84 

Anonymous
Not applicable

Use Group By Feature

I am new to DAX. Can you show an example?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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