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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
gmasta1129
Resolver I
Resolver I

Formula to Sum a Measure Based off Multiple Columns

Hello,

 

I have 2 columns in my table and one measure

 

1. Portfolio Code - Column

2. Fund Strat%  - Measure

3. Run Date - Column

 

I want to sum the values in "FundStrat%" (measure) by portfolio code and run date (columns).  

For example, if there are 20 rows in my table of "FundStrat%" values for portfolio code 11111 on 5/27/2025, I want the formula to sum all 20 rows to give me the total value.  

1 ACCEPTED SOLUTION
gmasta1129
Resolver I
Resolver I

Hello,

Thank you for your help. I figured out the formula to sum a measure. 

 

Formula to sum a measure = SUMX(VALUES(your table name),[measure])

View solution in original post

4 REPLIES 4
gmasta1129
Resolver I
Resolver I

Hello,

Thank you for your help. I figured out the formula to sum a measure. 

 

Formula to sum a measure = SUMX(VALUES(your table name),[measure])
v-venuppu
Community Support
Community Support

Hi @gmasta1129 ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @mdaatifraza5556 for the prompt response.

In order to sum the values in "FundStrat%" (measure) by portfolio code and run date (columns):

You can try using the DAX implemented in the attached PBIX file with sample data.

Created a measure called [Total Fund Strat% by Portfolio and Date].

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

 

Hello @v-venuppu , 

Thank you for the response. I cannot open the file. Can you please copy and paste the formula into the message box? 

mdaatifraza5556
Super User
Super User

Hi @gmasta1129 

As per my understanding of your requirement.
could you please try the below dax?

Total Fund Strat% by Portfolio and Date =
CALCULATE(
             [Fund Strat%],
             ALLEXCEPT(
                    'YourTable',
                    'YourTable'[Portfolio Code],
                    'YourTable'[Run Date]
               )
)


If this answers your questions, kindly accept it as a solution and give kudos.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.