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

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
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.