Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
99 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |