Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Dax gurus!,
I have the count for each consecutive month in the below screen shot. What i want to get is the values in the Total column. For each consMonth 1,2,3,4....., i want to add up the values in the count column.
May 20 = 1
Jun 20 = 1+1
July 20 = 1 + 1 + 2
Aug and oct or not consecutive months so the total start again in Oct and so on. Here is the output i am expecting:
thanks
Hi,
Total =
VAR ThisStartMonth = 'Table'[Startmonth]
VAR FirstMonth =
CALCULATE (
MAX ( 'Table'[Startmonth] ),
FILTER (
'Table',
'Table'[Startmonth] <= ThisStartMonth
&& 'Table'[consMonths] = 1
)
)
RETURN
CALCULATE (
SUM ( 'Table'[Count] ),
FILTER (
'Table',
'Table'[Startmonth] >= FirstMonth
&& 'Table'[Startmonth] <= ThisStartMonth
)
)
Regards
@aristotle I think you are going to have to start with a resetting counter and that is Cthulhu:
Cthulhu - Microsoft Power BI Community
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |