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.
Hi! I wanted to create a measure which will return a specific value which is computed using a cumulative total. For example, I only want to get the Cumulative Target for Week 5 which is 2064. Note again that Cumulative Target is a calculated measure and not a calculated column. Is there a way to create a measure such as this?
Thank you!
Solved! Go to Solution.
Hi @Anonymous
This worked for me and I have attached a basic PBIX file.
Measure = CALCULATE([Cumulative Target],'Table1'[Week]="Week 5")
Figured it out. I just have to use <= instead of an equal sign for the Week in Measure. Thanks a lot @Phil_Seamark
Measure = CALCULATE([Cumulative Target],'Table1'[Week] <= "Week 5")
Hi @Anonymous
This worked for me and I have attached a basic PBIX file.
Measure = CALCULATE([Cumulative Target],'Table1'[Week]="Week 5")
Figured it out. I just have to use <= instead of an equal sign for the Week in Measure. Thanks a lot @Phil_Seamark
Measure = CALCULATE([Cumulative Target],'Table1'[Week] <= "Week 5")
Hi @Phil_Seamark,
Thanks for the fast response !
But I'm still having trouble. Using the formula, the measure returns the Target not the Cumulative Target.
Here's my formula for the Cumulative Target:
Cumulative Target= CALCULATE( SUM( 'Table'[Target] ), FILTER( ALLSELECTED( 'Table' ), 'Table'[Week Number] <= MAX( 'Table'[Week Number] ) ))
I have another column in my table which is the Week Number.
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 |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |