Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
New to Power BI here... I have a table with a column that I need to pivot. After pivoting, I need to sum up several pivoted columns containing a specific keyword in their column names. Could you please advise how to achieve this?
Thank you.
Could you please share some example data ?
Regards
Hi,
I have columns like Sales_A, Sales_B, Incentives, Bonus, Sales_C. How can I create a new column to sum up columns where column name contains "Sales"?
Thanks.
Hi @Teena_Pa4,
Can you sum them up like below?
Measure = SUM ( 'table'[Sales_A] ) + SUM ( 'table'[Sales_B] ) + SUM ( 'table'[Sales_C] )
Best Regards,
Dale
Hi,
Thank you for your response.
My problem is, there can be additional columns having the same prefix "Sales_". How can I dynamically add all columns that starts with "Sales_"?
Thanks.
Hi @Teena_Pa4,
I'm afraid we can't add columns dynamically. Only the new rows will be included in the calculation automatically. Maybe you can unpivot the data in the Query Editor. Please refer to the snapshot below.
Best Regards,
Dale
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
65 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |