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

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

Reply
Anonymous
Not applicable

Measure sum columns doesn't exist

Helllo 

My current measue is Sum(S1_101)+ Sum(S2_101)+Sum(S3_101). User will add S4_101,S5_101,S6_101 etc. How can I make my measure include new column automaticlly ?

 

Project S1_101S1_1012S2_101S2_102S3_101S3_102
A100200150300600400
B100200150300600400
C100200150300600400
1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

I doubt this can be done with DAX. You can manually add new columns in the measure that need to be summed.

vangzhengmsft_0-1638166216496.png

But if you Unpivot the columns and then use the matrix to display the data, then it will be summed automatically.

vangzhengmsft_1-1638166305808.png

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , In such a case better to unpivot the data in power query and use that

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for your answer, I can unpivot and split column, then caculate(sum(value),filter(table,New_code=101)). I am curious whether we can deal with by Dax

Hi, @Anonymous 

 

I doubt this can be done with DAX. You can manually add new columns in the measure that need to be summed.

vangzhengmsft_0-1638166216496.png

But if you Unpivot the columns and then use the matrix to display the data, then it will be summed automatically.

vangzhengmsft_1-1638166305808.png

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors