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
aks24
Regular Visitor

Sum selected values based on another column and present as subtotals for another/ third column

Hi All,

 

Fairly new to powerbi so this may seem like a basic question but I cant seem to get my head around it. I have the following dataset showing order, order type, order category and amount.  I want to do 2 things to present my table and chart visual.

 

1. I would like to do sum based on selected values of order type (multiple values; in this case A+B+C) and separately by D.

2. These sum totals need to be presented by order category in the visual.

 

Any help is greatly appreciated. Cheers

 

Sample Dataset:

OrderOrder typeOrder Categoryamount
123AShirt64654
23434BTee21465
345APants56465
5476APants68746
547BTee64654
342DShirt52465
8765DShirt54545
48DTee32415
2456CPants14533
2764DPants45646
68576DPants34563

 

Trying to achieve the following:

 

Capture.JPGCapture.JPG

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI fille from here.

 

Hope this helps.

 

Untitled.png


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

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI fille from here.

 

Hope this helps.

 

Untitled.png


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

Thankyou! It works perfectly. Didnt think of this solution. 🙂

You are welcome.


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

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.