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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Row wise Calculation

Hi,

I fail to do the row-wise calculation in DAX measure.

I attached screenshots for your reference.

 Company   

State

ABCD
A12510
B23620
C34730
D45840
Total101426100

 

Now, the values coming in 'Total', want to use in the new table. I want to use the sum of 'Company A' in a new table in a single row.

Ex: 

CompanyTotal No. of Sales
A10
B14
C26
D100

Now, how can I get this total value in this new table?

Please help me we this concern. Thank you in advance

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

This is what you want.

v-lionel-msft_1-1606723278665.png

But your table columns are actually aggregated like this.

 

v-lionel-msft_0-1606723130333.png

So is it a mistake in your expression?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

This is what you want.

v-lionel-msft_1-1606723278665.png

But your table columns are actually aggregated like this.

 

v-lionel-msft_0-1606723130333.png

So is it a mistake in your expression?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous , is first one a visual table and actual table. If it is a visual table, You can take the company and Sum of Sales, That should give you.

else you need to unpivot first :  https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Yes, the first table is the visual table made using Matrix visulaization.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.