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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors