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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kmr5859
New Member

How to calculate the total sum of a measure across all dates, but still subject to slicers

Hello,

 

I have data which looks something like this:

DateTypeProjectMoney SourceAmount
1/1/2025InProjASource110
2/1/2025InProjASource150
3/1/2025InProjASource115
4/1/2025InProjASource15
1/1/2025InProjASource260
2/1/2025InProjASource221
3/1/2025InProjASource250
4/1/2025InProjASource244
1/1/2025InProjBSource166
2/1/2025InProjBSource142
3/1/2025InProjBSource135
4/1/2025InProjBSource182
1/1/2025InProjBSource244
2/1/2025InProjBSource258
3/1/2025InProjBSource255
4/1/2025InProjBSource221
1/1/2025OutProjASource110
2/1/2025OutProjASource150
3/1/2025OutProjASource115
4/1/2025OutProjASource15
1/1/2025OutProjASource260
2/1/2025OutProjASource221
3/1/2025OutProjASource250
4/1/2025OutProjASource244
1/1/2025OutProjBSource166
2/1/2025OutProjBSource142
3/1/2025OutProjBSource135
4/1/2025OutProjBSource182
1/1/2025OutProjBSource244
2/1/2025OutProjBSource258
3/1/2025OutProjBSource255
4/1/2025OutProjBSource221

 

You could arrange that data in a matrix that looks like this:

 1/1/20252/1/20253/1/20254/1/2025
In    
ProjA    
Source1    
Amount1050155
Source2    
Amount60215044
ProjB    
Source1    
Amount66423582
Source2    
Amount44585521
Out    
ProjA    
Source1    
Amount 1050155
Source2    
Amount 60215044
ProjB    
Source1    
Amount 66423582
Source2    
Amount 44585521

 

What I'm trying to do is also include rows for the cumulative amount per month, and then what % of the total the cumulative is at.. working it's way toward 100%. It's a spend plan.

 

So, looking at just the In & ProjA & Source1 info, the part in red is what I'm having trouble calculating as a function of all In/Out, ProjA/ProjB, and Source1/Source2. How do I sum across date but not across the other variables??

 1/1/20252/1/20253/1/20254/1/2025
In    
ProjA    
Source1    
Amount1050155
Cumulative Amount10607580
Total of In/ProjA/Source1 NOT changing in time80808080
cumulative's % of total13%75%94%100%

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You cannot measure a measure.  Either materialize it or implement the entire logic in a new measure.

lbendlin_0-1743026457045.png

 

 

View solution in original post

4 REPLIES 4
v-csrikanth
Community Support
Community Support

Hi @kmr5859 
I wanted to follow up since I haven't heard from you in a while. Have you had a chance to try the suggested solutions?
If your issue is resolved, please consider marking the post as solved. However, if you're still facing challenges, feel free to share the details, and we'll be happy to assist you further.
Looking forward to your response!

Best Regards,
Community Support Team _ C Srikanth.

v-csrikanth
Community Support
Community Support

HI @kmr5859 

We haven't heard from you since last response and just wanted to check whether the solution provided has worked for you. If yes, please Accept as Solution to help others benefit in the community.
Thank you.

If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.

v-csrikanth
Community Support
Community Support

Hi @kmr5859 
As highlighted by @lbendlin , the proposed approach appears to effectively address your requirements. Could you please confirm if your issue has been resolved?
If you are still facing any challenges, kindly provide further details, and we will be happy to assist you.

If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth.

lbendlin
Super User
Super User

You cannot measure a measure.  Either materialize it or implement the entire logic in a new measure.

lbendlin_0-1743026457045.png

 

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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