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
Anonymous
Not applicable

Month Wise Sum of sale

Hi Experts,

 

we need to sum of sales month 

 

MonthgradeSalesMonth wise sales
Jandsa432040
Janfd7652040
Janhj92040
Jangd232040
Jansh8762040
Janfdsh3242040
Febdsg431345
Febgfd8761345
Febkjh981345
Febhjkh11345
Febgfd431345
Febewr91345
Febkjh341345
Febqwd2411345

 

4 th column formula required in powerbi sum(jan sales) is 2040 and sum(Feb sales) is 1345

 

Thanks,

Tom

 

1 ACCEPTED SOLUTION
jaideepnema
Solution Sage
Solution Sage

Hi @Anonymous ,
use the following measure:

Month-Wise-Sales = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[Month]))
 
This will give you the desired output:
jaideepnema_0-1633946113211.png

Hope this helps !!

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

 
 

View solution in original post

5 REPLIES 5
HarishKM
Impactful Individual
Impactful Individual

@Anonymous  You can use This method to fulfill your reuirement .

COmmunity = CALCULATE(SUM(Sheet1[Sales]),ALL(Sheet1[grade]))



HarishKM_0-1634025483855.png

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.

Thanks and regards
Harish Mishra

 

Anonymous
Not applicable

 

is it possible to create measure format ?

@Anonymous For measure, you may use the solution suggested by @jaideepnema 

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂 (Hit the thumbs up button!)
If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)


https://www.vivran.in/

Connect on LinkedIn

jaideepnema
Solution Sage
Solution Sage

Hi @Anonymous ,
use the following measure:

Month-Wise-Sales = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[Month]))
 
This will give you the desired output:
jaideepnema_0-1633946113211.png

Hope this helps !!

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

 
 
vivran22
Community Champion
Community Champion

Hello @Anonymous ,

 

Assuming the requirement is a calculated column, you may use the following:

 

vivran22_0-1633946095921.png

 

Formula =
VAR _CurrentMonth = 'Table'[Month]
VAR _Filter =
FILTER(
'Table',
'Table'[Month] = _CurrentMonth
)
VAR _Sum = SUMX(_Filter,'Table'[Sales])
RETURN
_Sum
 
Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂 (Hit the thumbs up button!)
If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)


https://www.vivran.in/

Connect on LinkedIn

 

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.