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