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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
axel_BI
Helper I
Helper I

Pivoting Data with a measure

Hi,

my data is presenting me the sales per article per day per location. Like this.

Location|Date|Article_Nr|Sales

100005.08.2019100                                                      41,92 €
100005.08.2019200                                                              2,76 €
100005.08.2019300                                                              5,51 €
200005.08.2019100                                                            10,00 €
200005.08.2019300                                                              9,25 €
300006.08.2019100                                                            28,22 €
300006.08.2019200                                                          111,59 €
100006.08.2019100                                                            56,45 €

 

There are multiple locations and multiple articles per day. But not each locations will appear each day. And not every article will be sold in every day.

 

I need a way to Sum up data per Day per location.

I also need to count the days with sales for each location.

 

My goal is, to achieve average Sales per Day in total, aswell as per location.

I only get a general Average of Sales per Day, which doesnt consider different day-count per location.

 

Basically distinctcount location for distinct date.

 

Thx

1 ACCEPTED SOLUTION
Piotraq
Frequent Visitor

You can use summarize:

 

Summarize(Table;

Table[Location];
Table[Date];

"Sum";Sum(Sales);
"AVG";average(Sales))

 

View solution in original post

2 REPLIES 2
Piotraq
Frequent Visitor

You can use summarize:

 

Summarize(Table;

Table[Location];
Table[Date];

"Sum";Sum(Sales);
"AVG";average(Sales))

 

Thank You,

 

the pivot-table works just fine

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.