Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to 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
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]
Best Regards,
Dale
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
88 | |
52 | |
45 | |
39 | |
38 |