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.
Hi,
I need to calculate the total per month by customer, and that sum needs to be used in a calculated column formula.
I have seen this post but when I use it, it looks like it's summing the entire table.
https://community.powerbi.com/t5/Desktop/Calculated-Column-of-Sum-per-Month/td-p/442402
Example data set below. I've done a quick mock of what the "Month Total for Customer" should look like.
Solved! Go to Solution.
@Anonymous ,
You may use DAX below.
Column = SUMX ( FILTER ( Table1, Table1[customer] = EARLIER ( Table1[customer] ) && DATEDIFF ( Table1[day], EARLIER ( Table1[day] ), MONTH ) = 0 ), Table1[sales] )
@Anonymous ,
You may use DAX below.
Column = SUMX ( FILTER ( Table1, Table1[customer] = EARLIER ( Table1[customer] ) && DATEDIFF ( Table1[day], EARLIER ( Table1[day] ), MONTH ) = 0 ), Table1[sales] )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |