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

Cumalitive total in % for each region

Hi All,

 

Can you please help me how i can cumalitive total as % for each region as 100 week over week. 

For eg. I have week 1 to 10 and 3 region as X, Y, Z 
Suppose X has done total sales as 10

Suppose Y has done total sales as 20

Suppose X has done total sales as 30.

 

So i am looking line graph as Wk1,2,3,4,5,6,7,8,9,10 in X axis and show % for each region as 100%. Below is sample graph i am trying to build.please suggest. Thanks in advance.

 

Capture.PNG

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous this will do it, add this as a measure and change table and column name as per your model

 

Would appreciate Kudos 🙂 if my solution helped. Ask anything Power BI. Book appointment for a free consultancy at https://www.perytus.com

 

Cumulative % =
DIVIDE (
    CALCULATE (
        SUM ( Week[Sales] ),
        FILTER ( ALL ( Week[Week] ), Week[Week] <= MAX ( Week[Week] ) )
    ),
    CALCULATE ( SUM ( Week[Sales] ), ALL ( Week[Week] ) )
)

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

@Anonymous this will do it, add this as a measure and change table and column name as per your model

 

Would appreciate Kudos 🙂 if my solution helped. Ask anything Power BI. Book appointment for a free consultancy at https://www.perytus.com

 

Cumulative % =
DIVIDE (
    CALCULATE (
        SUM ( Week[Sales] ),
        FILTER ( ALL ( Week[Week] ), Week[Week] <= MAX ( Week[Week] ) )
    ),
    CALCULATE ( SUM ( Week[Sales] ), ALL ( Week[Week] ) )
)

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thanks @parry2k  for the solution that solves my problem. Another help is how to get the top n account for each region based the sales.

I am able to get the output but in result the region & account name is coming as a one column.I am looking like below output.  Can you please suggest for this. Thanks in advance & appreciate your help. 

Summary based on the total N slaes for each region it should give output like below. Capture1.PNGTopNAccount.PNG

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.