Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Running Annual Total

I have a table that has an annual amount for users that is not tied to any dates:

 

1.PNG

 

In a different table I have this setup:

2.PNG

(these 2 tables are already related through a date table). So what I need to figure out is how to get a cumulative total based on the annual amount. So for instance, we are in February. A person should have hit a total of 12% of their annual quota (6.5% from January + 5.5% from February). So for the first person with a quota of $180,000.56, they should right now be at $21,600.07. I have a formula that does return a cumulative number, however it sums it up for the entire table instead of each individual person:

3.PNG

 

Which results in:

4.PNG

 

If I click on a specific person's name, the correct value returns, but unfiltered everybody has the same $ value. How can I fix this? The idea is to have it dynamic so we can see in the future how much $ a person is expected to have by a certain date.

 

Other formulas involved in the above:


5.PNG

 

7.PNG

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

If i understand you correctly, please refer to the measure below.

Measure = SELECTEDVALUE(quota[quota ])*CALCULATE(SUM('quota%'[quota%]),FILTER(ALL('quota%'),'quota%'[month]<=SELECTEDVALUE('quota%'[month])))

Raw data:

9.PNG

10.PNG

Result would be shown as below.

 8.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , above solution/s has worked out for you.

v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

If i understand you correctly, please refer to the measure below.

Measure = SELECTEDVALUE(quota[quota ])*CALCULATE(SUM('quota%'[quota%]),FILTER(ALL('quota%'),'quota%'[month]<=SELECTEDVALUE('quota%'[month])))

Raw data:

9.PNG

10.PNG

Result would be shown as below.

 8.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Greg_Deckler
Super User
Super User

There is a running total quick measure in the Desktop that might work. Otherwise, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.