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
sandeepk66
Advocate I
Advocate I

Using DAX Sum of Sales by Store ID in Power BI Desktop

 

 

Hi, Can we Group by Totals sales by Location for Store ID Column in  Power BI Desktop, Please find the examples below.

 

Here is the Report:

Sales ID

Total Sales

Store ID

303

500

221

202

1200

560

102

700

221

232

400

780

103

450

120

231

555

780

 

And I want the output like:

Here, I needed Total Sales Grouping for Each Store, in the above example, Total Sales Grouped for Store ID’s 221 as 1300 &for 780 Total Sales 955.

Sale ID

Total Sales

Store ID

102

700

221

202

500

221

 

1300

 

103

450

120

 

450

 

303

1200

560

 

1200

 

231

555

780

232

400

780

 

955

 

 

 

 

 

 

6 REPLIES 6
v-jiascu-msft
Employee
Employee

Hi @sandeepk66,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

if you want to show this in a Dashboard then use Matrix Visual it serves just that.

 

Thanks

Yash

koushikB
Frequent Visitor

You can also use calculated table for this, 

 

Go to Modeling tab and click on new table then use this DAX formula

 

Group by = SUMMARIZE(Sheet1,Sheet1[Store ID],"Total sales", Sum(Sheet1[Total Sales])). 

 

 

GroupBy.PNG

vik0810
Resolver V
Resolver V

You can use matrix visual.

 

bsp.png

Can you provide steps, how did you get the row for totals under Store ID??

assuming you put down your visual, added store id and sales id under rows and sum under value, use "expand all button", its in the left up corner, 3rd one.

bsp.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.