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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
cocomy
Resolver I
Resolver I

Average daily sales x Days in month by Branch

Hi All,

 

I have a table of average daily sales by branch by month.  I want to add monthly sales by branch column (days in month x average sales by branch) Could you please help?

 

(1) Original table

Date           Branch    Average daily sales

1 Jan 2018 Tokyo     3

1 Jan 2018 Osaka     2

1 Jan 2018 Nagoya   1

1 Feb 2018 Tokyo     4

1 Feb 2018 Osaka     3

1 Feb 2018 Nagoya  4

 

(2) Original table + new measure

 

Date           Branch    Average daily sales     Days    Average monthly sales

1 Jan 2018 Tokyo     3                                   31       93

1 Jan 2018 Osaka     2                                   31       62

1 Jan 2018 Nagoya   1                                  31       31

1 Feb 2018 Tokyo     4                                  28       112

1 Feb 2018 Osaka     3                                  28       84

1 Feb 2018 Nagoya  4                                  28       112

 

 

 

All the best,

cocomy

 

 

 

1 ACCEPTED SOLUTION

Hi Dale,

 

Thank you very much for your help. I was not aware I need to write MIN. Thank you again!

 

All the best,

cocomy

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @cocomy,

 

Whether calculated columns or measures, you can find out the solution here.

The measure solution:

Days Measure =
DAY ( EOMONTH ( MIN ( 'Table1'[Date] ), 0 ) )
Average monthly sales measure =
MIN ( 'Table1'[Average daily sales] ) * [Days Measure]

Average_daily_sales_x_Days_in_month_by_Branch

 

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.

Hi Dale,

 

Thank you very much for your help. I was not aware I need to write MIN. Thank you again!

 

All the best,

cocomy

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.