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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AllanBerces
Post Partisan
Post Partisan

Sumx- Per Week

Hi good day,

Pls need assistance on how can i get the sum per week base from Phase and Trade.

AllanBerces_1-1723305930652.png

Thank you

 

1 ACCEPTED SOLUTION

Hi @Ashish_Mathur @sivarajan21 @mickey64 thank you to all your reply, i got the solution on my query.

 

Thank you

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

On week 27, there is only 1 combination of Com and Mech.  Shouldn't the answer be 1?  In Week 28, for the same combination of Com and Mech, shouldn't the answer be 3?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur @sivarajan21 @mickey64 thank you to all your reply, i got the solution on my query.

 

Thank you

Hi, @AllanBerces 

Glad to know that you appear to have found a solution.

 

Could you please share your solution and mark it as a solution? This will help other members of the community who are experiencing similar problems to yours to be able to find a solution faster. Thank you.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sivarajan21
Post Partisan
Post Partisan

Hi @AllanBerces ,

 

PFA measure to achieve your outcome

Sumxperweek = 
CALCULATE(COUNTAX(Trade,Trade[Phase]),ALLEXCEPT(Trade,Trade[Phase],Trade[Week No.]))

 

The result is:

sivarajan21_0-1723393638645.png

 

If you are satisfied with this, please accept it as a solution and give a kudos.

Thanks in advance!

AllanBerces
Post Partisan
Post Partisan

BTW i required it as Calculated Column

mickey64
Super User
Super User

For your reference.

mickey64_0-1723309113207.png

 

Hi @mickey64 Thank you for the reply, but i need it as Calculated Column.

 

 

For your reference.

Sum_Count = CALCULATE(SUM(DATA[Count]),ALLEXCEPT('DATA','DATA'[Week No.],'DATA'[Phase],'DATA'[Trade]))

 

Sum_Outcome = CALCULATE(SUM(DATA[Outcome]),ALLEXCEPT('DATA','DATA'[Week No.],'DATA'[Phase],'DATA'[Trade]))

 

mickey64_0-1723346318062.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.