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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors