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,
I find this is very simple to do in Excel but I've been having a problem getting it to work in power BI.
I have a column showing the date of occurrence of an event.
Event | Result |
1/1/2020 | 1 |
3/4/2020 | 3 |
3/5/2020 | 4 |
2/2/2020 | 2 |
What I would like to show is a cumulative area plot. Each event occurence only counts as a single point for the cumulative sum.
I would like the cumulative sum to be based on the week and not the day. In the end, we should see an area plot as follows..
Week | Count |
1 | 1 |
2 | 1 |
3 | 2 |
4 | 2 |
5 | 3 |
6 | 3 |
7 | 4 |
Note: the above table does not reflect what is expected from the example data provided. It merely shows that if I have a week with no events the cumulative total would reflect the value from the previous week.
Any help that you can provide would be greatly appreciated.
HD
@holydragon - Please @ me or mark this as an answer if this solved your problem.
@holydragon - Probably something like the following:
Column =
VAR __Table =
SUMMARIZE(
ADDCOLUMNS(
FILTER('Table',[Event] < EARLIER([Event]),
"Week",
WEEKNUM([Event])
),
[Week]
)
RETURN
COUNTROWS(__Table)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
74 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |