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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.