PowerBI - combining values and showing them in charts2019 Community Moderator ElectionCustom sorting in PowerBI chartArea-proportional pie chart highlighting in PowerBICombine real and planned data in PowerBI KPI visualizationsMissing values in PowerBI slicerConcatenation of detail values in PowerBIPowerBi Line Chart Color based on ValueBolding values in PowerBIpowerBI map doesnt show citiesShow time duration as “hh:mm:ss” in PowerBI chartsRanking measure by Grouped by Count Showing 1 in Visualization - PowerBI

Extra alignment tab has been changed to cr. } using table, tabular and resizebox

Is there any way to damage Intellect Devourer(s) when already within a creature's skull?

They call me Inspector Morse

Unreachable code, but reachable with exception

Solving "Resistance between two nodes on a grid" problem in Mathematica

How could our ancestors have domesticated a solitary predator?

Should I take out a loan for a friend to invest on my behalf?

Single word request: Harming the benefactor

Good for you! in Russian

Why is there a voltage between the mains ground and my radiator?

Why does Captain Marvel assume the people on this planet know this?

Do Bugbears' arms literally get longer when it's their turn?

Can't find the Shader/UVs tab

Examples of a statistic that is not independent of sample's distribution?

Algorithm to convert a fixed-length string to the smallest possible collision-free representation?

How do you like my writing?

What is the chance of making a successful appeal to dismissal decision from a PhD program after failing the qualifying exam in the 2nd attempt?

Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?

How strictly should I take "Candidates must be local"?

PTIJ: Why can't I eat anything?

Is there an elementary proof that there are infinitely many primes that are *not* completely split in an abelian extension?

infinitive telling the purpose

Do f-stop and exposure time perfectly cancel?

Reverse string, can I make it faster?



PowerBI - combining values and showing them in charts



2019 Community Moderator ElectionCustom sorting in PowerBI chartArea-proportional pie chart highlighting in PowerBICombine real and planned data in PowerBI KPI visualizationsMissing values in PowerBI slicerConcatenation of detail values in PowerBIPowerBi Line Chart Color based on ValueBolding values in PowerBIpowerBI map doesnt show citiesShow time duration as “hh:mm:ss” in PowerBI chartsRanking measure by Grouped by Count Showing 1 in Visualization - PowerBI










0















I am fairly new at PowerBI but want to use it within our Organisation a lot more frequently to get a better insight into our data.
Here is what i am currently struggling with:



I am trying to combine several individual datasets into one Group so i can Show them in a graph and compare them to other (potentially not combined Groups).
I have tried the grouping function but this just doesn't Group any values at all, and the Graphs do not Change. Below is a pic for Illustration.



Combination of hours from different departmens



Any help is greatly appreciated



thankx!
BR
AJ










share|improve this question









New contributor




AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    I am fairly new at PowerBI but want to use it within our Organisation a lot more frequently to get a better insight into our data.
    Here is what i am currently struggling with:



    I am trying to combine several individual datasets into one Group so i can Show them in a graph and compare them to other (potentially not combined Groups).
    I have tried the grouping function but this just doesn't Group any values at all, and the Graphs do not Change. Below is a pic for Illustration.



    Combination of hours from different departmens



    Any help is greatly appreciated



    thankx!
    BR
    AJ










    share|improve this question









    New contributor




    AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I am fairly new at PowerBI but want to use it within our Organisation a lot more frequently to get a better insight into our data.
      Here is what i am currently struggling with:



      I am trying to combine several individual datasets into one Group so i can Show them in a graph and compare them to other (potentially not combined Groups).
      I have tried the grouping function but this just doesn't Group any values at all, and the Graphs do not Change. Below is a pic for Illustration.



      Combination of hours from different departmens



      Any help is greatly appreciated



      thankx!
      BR
      AJ










      share|improve this question









      New contributor




      AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am fairly new at PowerBI but want to use it within our Organisation a lot more frequently to get a better insight into our data.
      Here is what i am currently struggling with:



      I am trying to combine several individual datasets into one Group so i can Show them in a graph and compare them to other (potentially not combined Groups).
      I have tried the grouping function but this just doesn't Group any values at all, and the Graphs do not Change. Below is a pic for Illustration.



      Combination of hours from different departmens



      Any help is greatly appreciated



      thankx!
      BR
      AJ







      powerbi






      share|improve this question









      New contributor




      AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Mar 7 at 7:47









      Roman Patutin

      1,69021419




      1,69021419






      New contributor




      AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Mar 7 at 7:38









      AndyJamesAndyJames

      32




      32




      New contributor




      AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      AndyJames is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Just define a new column with your needed category. On the left pane, go to Data > Modelling > New Column and write the following expression (assuming in YourDeptColumn values are strings):



          NewColumn = IF(OR(YourTable[YourDeptColumn] = "Dept.1"; 
          YourTable[YourDeptColumn] = "Dept.2";
          YourTable[YourDeptColumn] = "Dept.3"
          );
          "Dept 1+2+3";
          "Dept 4"
          )


          This is the result:



           YourDeptColumn NewColumn
          Dept.1 Dept 1+2+3
          Dept.2 Dept 1+2+3
          Dept.3 Dept 1+2+3
          Dept.4 Dept 4
          Dept.1 Dept 1+2+3


          Now put the NewColumn in your chart as category and the YourDeptColumn as color shade.






          share|improve this answer























          • Thanks for the immediate reply! Does this allow me then subsequently add up the "x hours" from the individual Depts.? And do i need the part for "Dept 4" ? I should mention i have like 20 other depts i don't want to sum

            – AndyJames
            Mar 7 at 10:33











          • EDIT: thanks this worked lovely, but It seems as if i cannot combine more than two "OR" statements. Do i have to combne several OR-columns to get where i need to be?

            – AndyJames
            Mar 7 at 10:41











          • Yes you are right, the docu says it just supports two arguments in the OR(). You can either stack the OR() function or you use a Switch() function. Here is a reference for the switch: docs.microsoft.com/en-us/dax/switch-function-dax

            – Strawberryshrub
            Mar 7 at 13:21











          • Great, thanks! Will defo give this a try! This seems to be like the "IFS" function from excel, or am I mistaken? EDIT: Just tried it and it seems to be working as intended

            – AndyJames
            Mar 7 at 14:22











          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
          );



          );






          AndyJames is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038413%2fpowerbi-combining-values-and-showing-them-in-charts%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









          0














          Just define a new column with your needed category. On the left pane, go to Data > Modelling > New Column and write the following expression (assuming in YourDeptColumn values are strings):



          NewColumn = IF(OR(YourTable[YourDeptColumn] = "Dept.1"; 
          YourTable[YourDeptColumn] = "Dept.2";
          YourTable[YourDeptColumn] = "Dept.3"
          );
          "Dept 1+2+3";
          "Dept 4"
          )


          This is the result:



           YourDeptColumn NewColumn
          Dept.1 Dept 1+2+3
          Dept.2 Dept 1+2+3
          Dept.3 Dept 1+2+3
          Dept.4 Dept 4
          Dept.1 Dept 1+2+3


          Now put the NewColumn in your chart as category and the YourDeptColumn as color shade.






          share|improve this answer























          • Thanks for the immediate reply! Does this allow me then subsequently add up the "x hours" from the individual Depts.? And do i need the part for "Dept 4" ? I should mention i have like 20 other depts i don't want to sum

            – AndyJames
            Mar 7 at 10:33











          • EDIT: thanks this worked lovely, but It seems as if i cannot combine more than two "OR" statements. Do i have to combne several OR-columns to get where i need to be?

            – AndyJames
            Mar 7 at 10:41











          • Yes you are right, the docu says it just supports two arguments in the OR(). You can either stack the OR() function or you use a Switch() function. Here is a reference for the switch: docs.microsoft.com/en-us/dax/switch-function-dax

            – Strawberryshrub
            Mar 7 at 13:21











          • Great, thanks! Will defo give this a try! This seems to be like the "IFS" function from excel, or am I mistaken? EDIT: Just tried it and it seems to be working as intended

            – AndyJames
            Mar 7 at 14:22
















          0














          Just define a new column with your needed category. On the left pane, go to Data > Modelling > New Column and write the following expression (assuming in YourDeptColumn values are strings):



          NewColumn = IF(OR(YourTable[YourDeptColumn] = "Dept.1"; 
          YourTable[YourDeptColumn] = "Dept.2";
          YourTable[YourDeptColumn] = "Dept.3"
          );
          "Dept 1+2+3";
          "Dept 4"
          )


          This is the result:



           YourDeptColumn NewColumn
          Dept.1 Dept 1+2+3
          Dept.2 Dept 1+2+3
          Dept.3 Dept 1+2+3
          Dept.4 Dept 4
          Dept.1 Dept 1+2+3


          Now put the NewColumn in your chart as category and the YourDeptColumn as color shade.






          share|improve this answer























          • Thanks for the immediate reply! Does this allow me then subsequently add up the "x hours" from the individual Depts.? And do i need the part for "Dept 4" ? I should mention i have like 20 other depts i don't want to sum

            – AndyJames
            Mar 7 at 10:33











          • EDIT: thanks this worked lovely, but It seems as if i cannot combine more than two "OR" statements. Do i have to combne several OR-columns to get where i need to be?

            – AndyJames
            Mar 7 at 10:41











          • Yes you are right, the docu says it just supports two arguments in the OR(). You can either stack the OR() function or you use a Switch() function. Here is a reference for the switch: docs.microsoft.com/en-us/dax/switch-function-dax

            – Strawberryshrub
            Mar 7 at 13:21











          • Great, thanks! Will defo give this a try! This seems to be like the "IFS" function from excel, or am I mistaken? EDIT: Just tried it and it seems to be working as intended

            – AndyJames
            Mar 7 at 14:22














          0












          0








          0







          Just define a new column with your needed category. On the left pane, go to Data > Modelling > New Column and write the following expression (assuming in YourDeptColumn values are strings):



          NewColumn = IF(OR(YourTable[YourDeptColumn] = "Dept.1"; 
          YourTable[YourDeptColumn] = "Dept.2";
          YourTable[YourDeptColumn] = "Dept.3"
          );
          "Dept 1+2+3";
          "Dept 4"
          )


          This is the result:



           YourDeptColumn NewColumn
          Dept.1 Dept 1+2+3
          Dept.2 Dept 1+2+3
          Dept.3 Dept 1+2+3
          Dept.4 Dept 4
          Dept.1 Dept 1+2+3


          Now put the NewColumn in your chart as category and the YourDeptColumn as color shade.






          share|improve this answer













          Just define a new column with your needed category. On the left pane, go to Data > Modelling > New Column and write the following expression (assuming in YourDeptColumn values are strings):



          NewColumn = IF(OR(YourTable[YourDeptColumn] = "Dept.1"; 
          YourTable[YourDeptColumn] = "Dept.2";
          YourTable[YourDeptColumn] = "Dept.3"
          );
          "Dept 1+2+3";
          "Dept 4"
          )


          This is the result:



           YourDeptColumn NewColumn
          Dept.1 Dept 1+2+3
          Dept.2 Dept 1+2+3
          Dept.3 Dept 1+2+3
          Dept.4 Dept 4
          Dept.1 Dept 1+2+3


          Now put the NewColumn in your chart as category and the YourDeptColumn as color shade.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 8:01









          StrawberryshrubStrawberryshrub

          1,4962517




          1,4962517












          • Thanks for the immediate reply! Does this allow me then subsequently add up the "x hours" from the individual Depts.? And do i need the part for "Dept 4" ? I should mention i have like 20 other depts i don't want to sum

            – AndyJames
            Mar 7 at 10:33











          • EDIT: thanks this worked lovely, but It seems as if i cannot combine more than two "OR" statements. Do i have to combne several OR-columns to get where i need to be?

            – AndyJames
            Mar 7 at 10:41











          • Yes you are right, the docu says it just supports two arguments in the OR(). You can either stack the OR() function or you use a Switch() function. Here is a reference for the switch: docs.microsoft.com/en-us/dax/switch-function-dax

            – Strawberryshrub
            Mar 7 at 13:21











          • Great, thanks! Will defo give this a try! This seems to be like the "IFS" function from excel, or am I mistaken? EDIT: Just tried it and it seems to be working as intended

            – AndyJames
            Mar 7 at 14:22


















          • Thanks for the immediate reply! Does this allow me then subsequently add up the "x hours" from the individual Depts.? And do i need the part for "Dept 4" ? I should mention i have like 20 other depts i don't want to sum

            – AndyJames
            Mar 7 at 10:33











          • EDIT: thanks this worked lovely, but It seems as if i cannot combine more than two "OR" statements. Do i have to combne several OR-columns to get where i need to be?

            – AndyJames
            Mar 7 at 10:41











          • Yes you are right, the docu says it just supports two arguments in the OR(). You can either stack the OR() function or you use a Switch() function. Here is a reference for the switch: docs.microsoft.com/en-us/dax/switch-function-dax

            – Strawberryshrub
            Mar 7 at 13:21











          • Great, thanks! Will defo give this a try! This seems to be like the "IFS" function from excel, or am I mistaken? EDIT: Just tried it and it seems to be working as intended

            – AndyJames
            Mar 7 at 14:22

















          Thanks for the immediate reply! Does this allow me then subsequently add up the "x hours" from the individual Depts.? And do i need the part for "Dept 4" ? I should mention i have like 20 other depts i don't want to sum

          – AndyJames
          Mar 7 at 10:33





          Thanks for the immediate reply! Does this allow me then subsequently add up the "x hours" from the individual Depts.? And do i need the part for "Dept 4" ? I should mention i have like 20 other depts i don't want to sum

          – AndyJames
          Mar 7 at 10:33













          EDIT: thanks this worked lovely, but It seems as if i cannot combine more than two "OR" statements. Do i have to combne several OR-columns to get where i need to be?

          – AndyJames
          Mar 7 at 10:41





          EDIT: thanks this worked lovely, but It seems as if i cannot combine more than two "OR" statements. Do i have to combne several OR-columns to get where i need to be?

          – AndyJames
          Mar 7 at 10:41













          Yes you are right, the docu says it just supports two arguments in the OR(). You can either stack the OR() function or you use a Switch() function. Here is a reference for the switch: docs.microsoft.com/en-us/dax/switch-function-dax

          – Strawberryshrub
          Mar 7 at 13:21





          Yes you are right, the docu says it just supports two arguments in the OR(). You can either stack the OR() function or you use a Switch() function. Here is a reference for the switch: docs.microsoft.com/en-us/dax/switch-function-dax

          – Strawberryshrub
          Mar 7 at 13:21













          Great, thanks! Will defo give this a try! This seems to be like the "IFS" function from excel, or am I mistaken? EDIT: Just tried it and it seems to be working as intended

          – AndyJames
          Mar 7 at 14:22






          Great, thanks! Will defo give this a try! This seems to be like the "IFS" function from excel, or am I mistaken? EDIT: Just tried it and it seems to be working as intended

          – AndyJames
          Mar 7 at 14:22













          AndyJames is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          AndyJames is a new contributor. Be nice, and check out our Code of Conduct.












          AndyJames is a new contributor. Be nice, and check out our Code of Conduct.











          AndyJames is a new contributor. Be nice, and check out our Code of Conduct.














          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%2f55038413%2fpowerbi-combining-values-and-showing-them-in-charts%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

          Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

          Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

          2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived