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
lastnn30
Post Patron
Post Patron

Table does not summarize

Hi

I have 3 tables and I merge them using PQ. Now I want to create a table in PowerBI which shows SalesPerson and Amount (Net).

When I creat a table, it wont summerize (add). For example, I expect Power Bi will add all Liz's transcations and give one number instead of 4. Also the Grand total is not added automatically in my table. Thank you very much.

 

SNAG-0124.jpg

SNAG-0135.jpg

PS: the Power BI file is here

 

https://drive.google.com/file/d/1XVIJgkdbRpouHIhjJv_U3GfUFp9KeLy0/view?usp=sharing

1 ACCEPTED SOLUTION

Hi,

Download the PBI file from here.  The data type of he net column was Text.  I changed it to Decimal in the Query Editor an wrote a simple SUM measure.

Hope this helps.

1.png

Also, changed one relationship (this is not required thought because you have merged data from all tables to just 1.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
lastnn30
Post Patron
Post Patron

Thank you very much.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ddpl
Solution Sage
Solution Sage

@lastnn30 Hi First change relationship as from Single to Both as per below snap:

 

ddpl_0-1678514054652.png

Then create measure as per below:

 

Measure  = var _S = SUM('Table (2)'[Amount])
var _C = SUM('Table (2)'[Amount]) * MIN('Table (3)'[Commision])
var _F = _S - _C
return
_F

finally  create table as per below:

Table = SUMMARIZE('Table', 'Table'[SalesPerson], "Raq" ,[Measure])
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the file 8.xlsx


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

Download the PBI file from here.  The data type of he net column was Text.  I changed it to Decimal in the Query Editor an wrote a simple SUM measure.

Hope this helps.

1.png

Also, changed one relationship (this is not required thought because you have merged data from all tables to just 1.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.