Power BI Sum cells grouped by same IDExcel Formula to Power BI with DAX - Summing multiple values with same IDSum multiple columns using DAX in Power BIpower bi: split column values by character and calculate sumPower BI - Conversion of seconds to hours in DAXSum 2 Table valuesPower BI: DAX formula - build sum on group IDDIVIDE using totals in Power BI – Cost per FTEAdd a Calculated Column to a Table in Power BIPower BI - Create a transaction based table based on inputCalculating Contribution in power BIHow to sum consecutive rows in Power Query

Can another character physically take something that Mage Hand is carrying/holding?

How to use JOIN and SUM function to Calculate the total of query returned column?

Why was Mal so quick to drop Bester in favour of Kaylee?

Does “comme on était à New York” mean “since” or “as though”?

Are metaheuristics ever practical for continuous optimization?

Why transcripts instead of degree certificates?

How can I convince my reader that I will not use a certain trope?

Java Optional working of orElse is not as if else

What is the difference between x RadToDeg cos x div and COSC?

How to fix a dry solder pin in BGA package?

Can 'leave' mean 'forget'?

Mean Value Theorem: Continuous or Defined?

Combining two tikz plots together

Was it really unprofessional of me to leave without asking for a raise first?

Can I travel from Germany to England alone as an unaccompanied minor?

Can a police officer film me on their personal device in my own home?

What is the equivalent of Math.Round() with MidpointRounding.AwayFromZero in Delphi?

How can my story take place on Earth without referring to our existing cities and countries?

Who is Johanna in this Joan Baez song - The Winds of the Old Days

Different budgets within roommate group

Did Wakanda officially get the stuff out of Bucky's head?

Why did this meteor appear cyan?

What does grep -v "grep" mean and do?

Should I report a leak of confidential HR information?



Power BI Sum cells grouped by same ID


Excel Formula to Power BI with DAX - Summing multiple values with same IDSum multiple columns using DAX in Power BIpower bi: split column values by character and calculate sumPower BI - Conversion of seconds to hours in DAXSum 2 Table valuesPower BI: DAX formula - build sum on group IDDIVIDE using totals in Power BI – Cost per FTEAdd a Calculated Column to a Table in Power BIPower BI - Create a transaction based table based on inputCalculating Contribution in power BIHow to sum consecutive rows in Power Query






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















How can I make a formula which sums all the cells which have the same ID?



enter image description hereenter image description here



Edit: Both of these columns are in the same table. I need a new column which calculates the sum of all the hours with the same ID.










share|improve this question
























  • Your questions is a bit unclear. Do you have to have a measure or are you happy with a just visual? Are the two columns in the picture in the same table? If not what is their relationship?

    – OscarLar
    Mar 25 at 12:52

















0















How can I make a formula which sums all the cells which have the same ID?



enter image description hereenter image description here



Edit: Both of these columns are in the same table. I need a new column which calculates the sum of all the hours with the same ID.










share|improve this question
























  • Your questions is a bit unclear. Do you have to have a measure or are you happy with a just visual? Are the two columns in the picture in the same table? If not what is their relationship?

    – OscarLar
    Mar 25 at 12:52













0












0








0








How can I make a formula which sums all the cells which have the same ID?



enter image description hereenter image description here



Edit: Both of these columns are in the same table. I need a new column which calculates the sum of all the hours with the same ID.










share|improve this question
















How can I make a formula which sums all the cells which have the same ID?



enter image description hereenter image description here



Edit: Both of these columns are in the same table. I need a new column which calculates the sum of all the hours with the same ID.







powerbi






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 12:56







PLATANIUM

















asked Mar 25 at 12:31









PLATANIUMPLATANIUM

1,1291 gold badge9 silver badges32 bronze badges




1,1291 gold badge9 silver badges32 bronze badges












  • Your questions is a bit unclear. Do you have to have a measure or are you happy with a just visual? Are the two columns in the picture in the same table? If not what is their relationship?

    – OscarLar
    Mar 25 at 12:52

















  • Your questions is a bit unclear. Do you have to have a measure or are you happy with a just visual? Are the two columns in the picture in the same table? If not what is their relationship?

    – OscarLar
    Mar 25 at 12:52
















Your questions is a bit unclear. Do you have to have a measure or are you happy with a just visual? Are the two columns in the picture in the same table? If not what is their relationship?

– OscarLar
Mar 25 at 12:52





Your questions is a bit unclear. Do you have to have a measure or are you happy with a just visual? Are the two columns in the picture in the same table? If not what is their relationship?

– OscarLar
Mar 25 at 12:52












1 Answer
1






active

oldest

votes


















1














In that case, I would create a new summery table:



SummeryTable = 
SUMMARIZE(
'TableName';
'TableName'[ID];
"Time_summed"; SUM('TableName'[TimeColumn])
)


Then you will end up with a table with distinct [ID] on each row and the sum of all hours corresponding to this ID from the original data table. Which you can use to create a relationship with the original table.



EDIT_1:



Yes you can if you use a calculated column like this:



SumTime = 
VAR thisID = [ID]
RETURN
CALCULATE(
SUM('TableName'[TimeColumn]);
ALL('Tablename');
'TableName'[ID] = thisID
)





share|improve this answer

























  • Is there a way to do this without a new table? Just with a new column in my existing table with a formula?

    – PLATANIUM
    Mar 25 at 14:33











  • Is there a way we could speak more directly? I could use more of your knowledge :)

    – PLATANIUM
    Mar 25 at 15:19











  • Haha thanks @PLATINUM, why not keep the questions here so that everyone can learn from anyone's question. Otherwise I'd have to charge you by the hour for private tutoring ;-)

    – OscarLar
    Mar 26 at 7:15










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337848%2fpower-bi-sum-cells-grouped-by-same-id%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














In that case, I would create a new summery table:



SummeryTable = 
SUMMARIZE(
'TableName';
'TableName'[ID];
"Time_summed"; SUM('TableName'[TimeColumn])
)


Then you will end up with a table with distinct [ID] on each row and the sum of all hours corresponding to this ID from the original data table. Which you can use to create a relationship with the original table.



EDIT_1:



Yes you can if you use a calculated column like this:



SumTime = 
VAR thisID = [ID]
RETURN
CALCULATE(
SUM('TableName'[TimeColumn]);
ALL('Tablename');
'TableName'[ID] = thisID
)





share|improve this answer

























  • Is there a way to do this without a new table? Just with a new column in my existing table with a formula?

    – PLATANIUM
    Mar 25 at 14:33











  • Is there a way we could speak more directly? I could use more of your knowledge :)

    – PLATANIUM
    Mar 25 at 15:19











  • Haha thanks @PLATINUM, why not keep the questions here so that everyone can learn from anyone's question. Otherwise I'd have to charge you by the hour for private tutoring ;-)

    – OscarLar
    Mar 26 at 7:15















1














In that case, I would create a new summery table:



SummeryTable = 
SUMMARIZE(
'TableName';
'TableName'[ID];
"Time_summed"; SUM('TableName'[TimeColumn])
)


Then you will end up with a table with distinct [ID] on each row and the sum of all hours corresponding to this ID from the original data table. Which you can use to create a relationship with the original table.



EDIT_1:



Yes you can if you use a calculated column like this:



SumTime = 
VAR thisID = [ID]
RETURN
CALCULATE(
SUM('TableName'[TimeColumn]);
ALL('Tablename');
'TableName'[ID] = thisID
)





share|improve this answer

























  • Is there a way to do this without a new table? Just with a new column in my existing table with a formula?

    – PLATANIUM
    Mar 25 at 14:33











  • Is there a way we could speak more directly? I could use more of your knowledge :)

    – PLATANIUM
    Mar 25 at 15:19











  • Haha thanks @PLATINUM, why not keep the questions here so that everyone can learn from anyone's question. Otherwise I'd have to charge you by the hour for private tutoring ;-)

    – OscarLar
    Mar 26 at 7:15













1












1








1







In that case, I would create a new summery table:



SummeryTable = 
SUMMARIZE(
'TableName';
'TableName'[ID];
"Time_summed"; SUM('TableName'[TimeColumn])
)


Then you will end up with a table with distinct [ID] on each row and the sum of all hours corresponding to this ID from the original data table. Which you can use to create a relationship with the original table.



EDIT_1:



Yes you can if you use a calculated column like this:



SumTime = 
VAR thisID = [ID]
RETURN
CALCULATE(
SUM('TableName'[TimeColumn]);
ALL('Tablename');
'TableName'[ID] = thisID
)





share|improve this answer















In that case, I would create a new summery table:



SummeryTable = 
SUMMARIZE(
'TableName';
'TableName'[ID];
"Time_summed"; SUM('TableName'[TimeColumn])
)


Then you will end up with a table with distinct [ID] on each row and the sum of all hours corresponding to this ID from the original data table. Which you can use to create a relationship with the original table.



EDIT_1:



Yes you can if you use a calculated column like this:



SumTime = 
VAR thisID = [ID]
RETURN
CALCULATE(
SUM('TableName'[TimeColumn]);
ALL('Tablename');
'TableName'[ID] = thisID
)






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 27 at 6:20









Pang

7,10116 gold badges68 silver badges107 bronze badges




7,10116 gold badges68 silver badges107 bronze badges










answered Mar 25 at 14:00









OscarLarOscarLar

3381 silver badge10 bronze badges




3381 silver badge10 bronze badges












  • Is there a way to do this without a new table? Just with a new column in my existing table with a formula?

    – PLATANIUM
    Mar 25 at 14:33











  • Is there a way we could speak more directly? I could use more of your knowledge :)

    – PLATANIUM
    Mar 25 at 15:19











  • Haha thanks @PLATINUM, why not keep the questions here so that everyone can learn from anyone's question. Otherwise I'd have to charge you by the hour for private tutoring ;-)

    – OscarLar
    Mar 26 at 7:15

















  • Is there a way to do this without a new table? Just with a new column in my existing table with a formula?

    – PLATANIUM
    Mar 25 at 14:33











  • Is there a way we could speak more directly? I could use more of your knowledge :)

    – PLATANIUM
    Mar 25 at 15:19











  • Haha thanks @PLATINUM, why not keep the questions here so that everyone can learn from anyone's question. Otherwise I'd have to charge you by the hour for private tutoring ;-)

    – OscarLar
    Mar 26 at 7:15
















Is there a way to do this without a new table? Just with a new column in my existing table with a formula?

– PLATANIUM
Mar 25 at 14:33





Is there a way to do this without a new table? Just with a new column in my existing table with a formula?

– PLATANIUM
Mar 25 at 14:33













Is there a way we could speak more directly? I could use more of your knowledge :)

– PLATANIUM
Mar 25 at 15:19





Is there a way we could speak more directly? I could use more of your knowledge :)

– PLATANIUM
Mar 25 at 15:19













Haha thanks @PLATINUM, why not keep the questions here so that everyone can learn from anyone's question. Otherwise I'd have to charge you by the hour for private tutoring ;-)

– OscarLar
Mar 26 at 7:15





Haha thanks @PLATINUM, why not keep the questions here so that everyone can learn from anyone's question. Otherwise I'd have to charge you by the hour for private tutoring ;-)

– OscarLar
Mar 26 at 7:15






Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.








Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337848%2fpower-bi-sum-cells-grouped-by-same-id%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해