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.
I have a very simple table with two columns. Date, and Daily Events. The data comes a Big Data DB. The events are already aggregated per day but I want to run a cummulative total. The DAX CALCULATE function does not work since none of the two columns are expressions. I even separated the date into another table that has only Dates. So here is the way the data looks
Date NumberOfDailyEvents
2017-10-26 207294
2017-10-27 339522
2017-10-28 221002
. .
. .
I hope you get the picture. Now, I thought the calculate function should look something like this:
Can anybody please tell me what do I need to make this thing work (The NumberOfDailyEvents] is not a measure like I said, it comes directly from a DB.
thanks
Since NumberOfDailyEvents is a column you will just need to provide an aggregate function like SUM() to tell the tabular engine how to aggregate the values.
eg.
CALCULATE (
SUM([NumberOfDailyEvents]),
FILTER (
ALL ( 'Date'[Date] ),
'Date'[Date] <= MAX ( 'Date'[Date] )
)
)
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |