Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
I am currently trying to get cumulative sum of my sample data as in picture. but instead of Cumulative Variance and Cumulative Sales i am getting same as the normal variance and Cumulative sales. I have pasted my DAX code as well but it is not working.
I have slicers on datetime,pharmaid,base,base group (currently only datetime and pharma id are selected)
This is the dax formaula used for Cumulative variance and Sales -
Cumulated Variance =
CALCULATE (
SUM (Table1'[Variance]),
FILTER(ALLSELECTED(Table1[DateTime],Table1[pharmaSiteld]),
Table1[DateTime] <=MAX(Table1[DateTime])
)
Can someone please help me
Try
CALCULATE(
COUNTA('Table1'[Variance]),
FILTER(
ALLSELECTED('Table1'[DateTime]),
ISONORAFTER('Table1'[DateTime], MAX('Table1'[DateTime]), DESC)
)
)
This is Giving all rows as 1 in cumulative sum. Can you please try once more?
Ok, I guess you should use Sum instead of Count.
Or if your Variance column is already a measure, then just use that instead.
Yes i have already given my DAX formula, but it is not giving the cumulative sum i need. can someone please help on this.
I have been trying for 2 days and still got no solution.
Instead of cumulative sum i am getting same value as variance column.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |