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.
Hello everyone,
I need some help here...
I need to create a measure that calculates cumulative values starting by currently month but sum the past values.
Example:
Thanks
Solved! Go to Solution.
@danielmorais Maybe:
Measure =
VAR __Today = TODAY()
VAR __Start = DATE(YEAR(__Today),MONTH(__Today),1)
VAR __Month = MAX('Table'[Month])
VAR __Table = FILTER(ALL('Table'),[Month] <= __Month)
RETURN
IF(__Month < __Start,0,SUMX(__Table,[Value]))
@danielmorais Maybe:
Measure =
VAR __Today = TODAY()
VAR __Start = DATE(YEAR(__Today),MONTH(__Today),1)
VAR __Month = MAX('Table'[Month])
VAR __Table = FILTER(ALL('Table'),[Month] <= __Month)
RETURN
IF(__Month < __Start,0,SUMX(__Table,[Value]))
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 |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |