Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello colleagues!
I have a KPI that measures a relation of the number of people in the company by the end of month and the number of occurrences of an activity within that certain month.
It divides the occurrences / number of people.
To bring the accumulated result for more than 1 period, it needs to make that calculation for each month individually and sum the result.
However, as I have a list of people for each month, doing a countrows sums all the number of people of all months - not bringing the correct result.
Can you please please support on the measure of advices?
Solved! Go to Solution.
Hi @uie07923 ,
You could create a measure like below:
measure =
IF (
ISINSCOPE ( 'Table'[date].[Month] ),
[Fluctuation],
SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[date].[Year] = SELECTEDVALUE ( 'Table'[date].[Year] )
),
[Fluctuation]
)
)
Best Regards,
Jay
Hi @uie07923 ,
You could create a measure like below:
measure =
IF (
ISINSCOPE ( 'Table'[date].[Month] ),
[Fluctuation],
SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[date].[Year] = SELECTEDVALUE ( 'Table'[date].[Year] )
),
[Fluctuation]
)
)
Best Regards,
Jay
@uie07923 , not very clear, if you have date you can use datesytd
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
or
YTD= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year]) && 'Date'[Month] <= Max('Date'[Month]) ))
Cumulative across year
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.