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
Anonymous
Not applicable

Create New Columns by taking one base existing columns (just like Group BY)

Dear, Community 

i successfully puting a value a metrix but when it come to total i cant do it because the total would show just one result.

i want to create a new column that would aggreate total of TARGET_Product or Current_Product BY  Branch_ID. 

so how can i get the total of Target Product in each Branch_ID.

It can could be measure or column that fine 

Thanks in advance 

Screenshot (57)_LI.jpg

4 REPLIES 4
Kaly
Resolver II
Resolver II

Hi @Anonymous ,

Sorry I'm not very clear about your desired result. Could you please explain more or show the desired result based on the sample?

 

Best Regards,

Kaly

SpartaBI
Community Champion
Community Champion

@Anonymous for column create this:
Column = 
VAR _branch = 'TableName'[Branch-ID]
RETURN
COUNTROWS(FILTER('Table', 'TableName'[Branch-ID] = _branch))



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Showcase Report – Contoso By SpartaBI

Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Anonymous
Not applicable

The filter works fine but i want to put it all in the same matrix. while i do so it likely to duplicate and count all the remaning column and stack on top of each other.Screenshot (60)_LI.jpgScreenshot (61)_LI.jpg

@Anonymous hard to work with screenshots.
Can you sent me the file and explain what you want to get?

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.