SSAS Dimension Attribute based on a SSAS calculated measure





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm currently struggle with an issue and I hope you help with that.



I need to dynamically associate an attribute of a dimension in my SSAS cube (multidimensional) based on a calculation performed on the cube itself.



Simplifing, based on a date selected by the user, I have a calculation (already done) that returns the number of days that type of material is in stock. With that value I want to return an attribute based on a range of values.



for example:



Nr_Days_Calculated = 80 


DIMENSION:



ID  INI  END        DSC

1 0 90 TextA

2 91 180 TextB

3 181 99999 TextC


Result : 1 - TextA



Can anyone please help me? Thanks for your attention.










share|improve this question





























    0















    I'm currently struggle with an issue and I hope you help with that.



    I need to dynamically associate an attribute of a dimension in my SSAS cube (multidimensional) based on a calculation performed on the cube itself.



    Simplifing, based on a date selected by the user, I have a calculation (already done) that returns the number of days that type of material is in stock. With that value I want to return an attribute based on a range of values.



    for example:



    Nr_Days_Calculated = 80 


    DIMENSION:



    ID  INI  END        DSC

    1 0 90 TextA

    2 91 180 TextB

    3 181 99999 TextC


    Result : 1 - TextA



    Can anyone please help me? Thanks for your attention.










    share|improve this question

























      0












      0








      0


      2






      I'm currently struggle with an issue and I hope you help with that.



      I need to dynamically associate an attribute of a dimension in my SSAS cube (multidimensional) based on a calculation performed on the cube itself.



      Simplifing, based on a date selected by the user, I have a calculation (already done) that returns the number of days that type of material is in stock. With that value I want to return an attribute based on a range of values.



      for example:



      Nr_Days_Calculated = 80 


      DIMENSION:



      ID  INI  END        DSC

      1 0 90 TextA

      2 91 180 TextB

      3 181 99999 TextC


      Result : 1 - TextA



      Can anyone please help me? Thanks for your attention.










      share|improve this question














      I'm currently struggle with an issue and I hope you help with that.



      I need to dynamically associate an attribute of a dimension in my SSAS cube (multidimensional) based on a calculation performed on the cube itself.



      Simplifing, based on a date selected by the user, I have a calculation (already done) that returns the number of days that type of material is in stock. With that value I want to return an attribute based on a range of values.



      for example:



      Nr_Days_Calculated = 80 


      DIMENSION:



      ID  INI  END        DSC

      1 0 90 TextA

      2 91 180 TextB

      3 181 99999 TextC


      Result : 1 - TextA



      Can anyone please help me? Thanks for your attention.







      ssas olap olap-cube






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '18 at 23:48









      Ricardo CastroRicardo Castro

      4310




      4310
























          1 Answer
          1






          active

          oldest

          votes


















          0














          It's doable if your dimension also has dynamic calculations. Let me show you another example, but idea is the same.



          I have a dimension [Repeat Customers], if a customer (identified by email) signed in the second, third, fourth time - move this customer to appropriate member of this dimension.



          First, create dimension with one default member.



          Second, add several empty members:



          (you can skip it, because dim members are materialized in your case)



          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[One] as NULL;      
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Two] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Three] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Four] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Five] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[6+] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[N/A] as NULL;


          Third, add their calculations:



          SCOPE([Repeat Customers].[Repeat Customers].[All].[One],[Measures].[Count]);      
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=1));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[Two],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=2));
          END SCOPE;

          ...

          SCOPE([Repeat Customers].[Repeat Customers].[All].[6+],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])>=6));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[N/A],[Measures].[Count]);
          THIS=([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])
          -SUM({
          [Repeat Customers].[Repeat Customers].[All].[One]
          ,[Repeat Customers].[Repeat Customers].[All].[Two]
          ,[Repeat Customers].[Repeat Customers].[All].[Three]
          ,[Repeat Customers].[Repeat Customers].[All].[Four]
          ,[Repeat Customers].[Repeat Customers].[All].[Five]
          ,[Repeat Customers].[Repeat Customers].[All].[6+]
          },[Measures].[Count]);
          END SCOPE;


          Output:



          DynamicDim



          I think your filter has to use >= and <= Nr_Days_Calculated. But not sure which measure are you trying to show. Is 1 - TextA related to [Measures].[Nr_Days_Calculated]? If yes, we are good, just use your measure and SUM or else as aggregate instead of Count() in my case.



          This is not the best performance solution (because of dynamic calculation), but still it works. Hope it helps.






          share|improve this answer
























          • Hi @Alex Peshik it seems that this will help me... I will try to implement and them give feedback. To clarify, the output 1 - TextA is the ID and DSC in the dimension

            – Ricardo Castro
            Nov 29 '18 at 9:24











          • yes, I understand. But which measure are you expecting to see distributed by this dimension? Should be smth like COUNT OF ROWS where Nr_Days_Calculated = 80 falls to '1 - TextA' member. It was simple in my case, because it was only count. Let's wait what you'll implement.

            – Alex Peshik
            Nov 29 '18 at 13:04











          • Basically I need to dynamically associate an attribute of the dimension based on the Nr_Days_Calculated. The idea is to have be able to use this dimension as an analysis entry point to the metric group.

            – Ricardo Castro
            Nov 29 '18 at 17:11












          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%2f53490780%2fssas-dimension-attribute-based-on-a-ssas-calculated-measure%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














          It's doable if your dimension also has dynamic calculations. Let me show you another example, but idea is the same.



          I have a dimension [Repeat Customers], if a customer (identified by email) signed in the second, third, fourth time - move this customer to appropriate member of this dimension.



          First, create dimension with one default member.



          Second, add several empty members:



          (you can skip it, because dim members are materialized in your case)



          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[One] as NULL;      
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Two] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Three] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Four] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Five] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[6+] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[N/A] as NULL;


          Third, add their calculations:



          SCOPE([Repeat Customers].[Repeat Customers].[All].[One],[Measures].[Count]);      
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=1));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[Two],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=2));
          END SCOPE;

          ...

          SCOPE([Repeat Customers].[Repeat Customers].[All].[6+],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])>=6));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[N/A],[Measures].[Count]);
          THIS=([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])
          -SUM({
          [Repeat Customers].[Repeat Customers].[All].[One]
          ,[Repeat Customers].[Repeat Customers].[All].[Two]
          ,[Repeat Customers].[Repeat Customers].[All].[Three]
          ,[Repeat Customers].[Repeat Customers].[All].[Four]
          ,[Repeat Customers].[Repeat Customers].[All].[Five]
          ,[Repeat Customers].[Repeat Customers].[All].[6+]
          },[Measures].[Count]);
          END SCOPE;


          Output:



          DynamicDim



          I think your filter has to use >= and <= Nr_Days_Calculated. But not sure which measure are you trying to show. Is 1 - TextA related to [Measures].[Nr_Days_Calculated]? If yes, we are good, just use your measure and SUM or else as aggregate instead of Count() in my case.



          This is not the best performance solution (because of dynamic calculation), but still it works. Hope it helps.






          share|improve this answer
























          • Hi @Alex Peshik it seems that this will help me... I will try to implement and them give feedback. To clarify, the output 1 - TextA is the ID and DSC in the dimension

            – Ricardo Castro
            Nov 29 '18 at 9:24











          • yes, I understand. But which measure are you expecting to see distributed by this dimension? Should be smth like COUNT OF ROWS where Nr_Days_Calculated = 80 falls to '1 - TextA' member. It was simple in my case, because it was only count. Let's wait what you'll implement.

            – Alex Peshik
            Nov 29 '18 at 13:04











          • Basically I need to dynamically associate an attribute of the dimension based on the Nr_Days_Calculated. The idea is to have be able to use this dimension as an analysis entry point to the metric group.

            – Ricardo Castro
            Nov 29 '18 at 17:11
















          0














          It's doable if your dimension also has dynamic calculations. Let me show you another example, but idea is the same.



          I have a dimension [Repeat Customers], if a customer (identified by email) signed in the second, third, fourth time - move this customer to appropriate member of this dimension.



          First, create dimension with one default member.



          Second, add several empty members:



          (you can skip it, because dim members are materialized in your case)



          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[One] as NULL;      
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Two] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Three] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Four] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Five] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[6+] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[N/A] as NULL;


          Third, add their calculations:



          SCOPE([Repeat Customers].[Repeat Customers].[All].[One],[Measures].[Count]);      
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=1));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[Two],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=2));
          END SCOPE;

          ...

          SCOPE([Repeat Customers].[Repeat Customers].[All].[6+],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])>=6));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[N/A],[Measures].[Count]);
          THIS=([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])
          -SUM({
          [Repeat Customers].[Repeat Customers].[All].[One]
          ,[Repeat Customers].[Repeat Customers].[All].[Two]
          ,[Repeat Customers].[Repeat Customers].[All].[Three]
          ,[Repeat Customers].[Repeat Customers].[All].[Four]
          ,[Repeat Customers].[Repeat Customers].[All].[Five]
          ,[Repeat Customers].[Repeat Customers].[All].[6+]
          },[Measures].[Count]);
          END SCOPE;


          Output:



          DynamicDim



          I think your filter has to use >= and <= Nr_Days_Calculated. But not sure which measure are you trying to show. Is 1 - TextA related to [Measures].[Nr_Days_Calculated]? If yes, we are good, just use your measure and SUM or else as aggregate instead of Count() in my case.



          This is not the best performance solution (because of dynamic calculation), but still it works. Hope it helps.






          share|improve this answer
























          • Hi @Alex Peshik it seems that this will help me... I will try to implement and them give feedback. To clarify, the output 1 - TextA is the ID and DSC in the dimension

            – Ricardo Castro
            Nov 29 '18 at 9:24











          • yes, I understand. But which measure are you expecting to see distributed by this dimension? Should be smth like COUNT OF ROWS where Nr_Days_Calculated = 80 falls to '1 - TextA' member. It was simple in my case, because it was only count. Let's wait what you'll implement.

            – Alex Peshik
            Nov 29 '18 at 13:04











          • Basically I need to dynamically associate an attribute of the dimension based on the Nr_Days_Calculated. The idea is to have be able to use this dimension as an analysis entry point to the metric group.

            – Ricardo Castro
            Nov 29 '18 at 17:11














          0












          0








          0







          It's doable if your dimension also has dynamic calculations. Let me show you another example, but idea is the same.



          I have a dimension [Repeat Customers], if a customer (identified by email) signed in the second, third, fourth time - move this customer to appropriate member of this dimension.



          First, create dimension with one default member.



          Second, add several empty members:



          (you can skip it, because dim members are materialized in your case)



          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[One] as NULL;      
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Two] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Three] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Four] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Five] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[6+] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[N/A] as NULL;


          Third, add their calculations:



          SCOPE([Repeat Customers].[Repeat Customers].[All].[One],[Measures].[Count]);      
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=1));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[Two],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=2));
          END SCOPE;

          ...

          SCOPE([Repeat Customers].[Repeat Customers].[All].[6+],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])>=6));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[N/A],[Measures].[Count]);
          THIS=([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])
          -SUM({
          [Repeat Customers].[Repeat Customers].[All].[One]
          ,[Repeat Customers].[Repeat Customers].[All].[Two]
          ,[Repeat Customers].[Repeat Customers].[All].[Three]
          ,[Repeat Customers].[Repeat Customers].[All].[Four]
          ,[Repeat Customers].[Repeat Customers].[All].[Five]
          ,[Repeat Customers].[Repeat Customers].[All].[6+]
          },[Measures].[Count]);
          END SCOPE;


          Output:



          DynamicDim



          I think your filter has to use >= and <= Nr_Days_Calculated. But not sure which measure are you trying to show. Is 1 - TextA related to [Measures].[Nr_Days_Calculated]? If yes, we are good, just use your measure and SUM or else as aggregate instead of Count() in my case.



          This is not the best performance solution (because of dynamic calculation), but still it works. Hope it helps.






          share|improve this answer













          It's doable if your dimension also has dynamic calculations. Let me show you another example, but idea is the same.



          I have a dimension [Repeat Customers], if a customer (identified by email) signed in the second, third, fourth time - move this customer to appropriate member of this dimension.



          First, create dimension with one default member.



          Second, add several empty members:



          (you can skip it, because dim members are materialized in your case)



          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[One] as NULL;      
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Two] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Three] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Four] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[Five] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[6+] as NULL;
          CREATE MEMBER CURRENTCUBE.[Repeat Customers].[Repeat Customers].[All].[N/A] as NULL;


          Third, add their calculations:



          SCOPE([Repeat Customers].[Repeat Customers].[All].[One],[Measures].[Count]);      
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=1));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[Two],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])=2));
          END SCOPE;

          ...

          SCOPE([Repeat Customers].[Repeat Customers].[All].[6+],[Measures].[Count]);
          THIS=Count(Filter([Email].[Email].Members,([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])>=6));
          END SCOPE;

          SCOPE([Repeat Customers].[Repeat Customers].[All].[N/A],[Measures].[Count]);
          THIS=([Measures].[Count],[Repeat Customers].[Repeat Customers].&[0])
          -SUM({
          [Repeat Customers].[Repeat Customers].[All].[One]
          ,[Repeat Customers].[Repeat Customers].[All].[Two]
          ,[Repeat Customers].[Repeat Customers].[All].[Three]
          ,[Repeat Customers].[Repeat Customers].[All].[Four]
          ,[Repeat Customers].[Repeat Customers].[All].[Five]
          ,[Repeat Customers].[Repeat Customers].[All].[6+]
          },[Measures].[Count]);
          END SCOPE;


          Output:



          DynamicDim



          I think your filter has to use >= and <= Nr_Days_Calculated. But not sure which measure are you trying to show. Is 1 - TextA related to [Measures].[Nr_Days_Calculated]? If yes, we are good, just use your measure and SUM or else as aggregate instead of Count() in my case.



          This is not the best performance solution (because of dynamic calculation), but still it works. Hope it helps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 28 '18 at 17:08









          Alex PeshikAlex Peshik

          1,31521219




          1,31521219













          • Hi @Alex Peshik it seems that this will help me... I will try to implement and them give feedback. To clarify, the output 1 - TextA is the ID and DSC in the dimension

            – Ricardo Castro
            Nov 29 '18 at 9:24











          • yes, I understand. But which measure are you expecting to see distributed by this dimension? Should be smth like COUNT OF ROWS where Nr_Days_Calculated = 80 falls to '1 - TextA' member. It was simple in my case, because it was only count. Let's wait what you'll implement.

            – Alex Peshik
            Nov 29 '18 at 13:04











          • Basically I need to dynamically associate an attribute of the dimension based on the Nr_Days_Calculated. The idea is to have be able to use this dimension as an analysis entry point to the metric group.

            – Ricardo Castro
            Nov 29 '18 at 17:11



















          • Hi @Alex Peshik it seems that this will help me... I will try to implement and them give feedback. To clarify, the output 1 - TextA is the ID and DSC in the dimension

            – Ricardo Castro
            Nov 29 '18 at 9:24











          • yes, I understand. But which measure are you expecting to see distributed by this dimension? Should be smth like COUNT OF ROWS where Nr_Days_Calculated = 80 falls to '1 - TextA' member. It was simple in my case, because it was only count. Let's wait what you'll implement.

            – Alex Peshik
            Nov 29 '18 at 13:04











          • Basically I need to dynamically associate an attribute of the dimension based on the Nr_Days_Calculated. The idea is to have be able to use this dimension as an analysis entry point to the metric group.

            – Ricardo Castro
            Nov 29 '18 at 17:11

















          Hi @Alex Peshik it seems that this will help me... I will try to implement and them give feedback. To clarify, the output 1 - TextA is the ID and DSC in the dimension

          – Ricardo Castro
          Nov 29 '18 at 9:24





          Hi @Alex Peshik it seems that this will help me... I will try to implement and them give feedback. To clarify, the output 1 - TextA is the ID and DSC in the dimension

          – Ricardo Castro
          Nov 29 '18 at 9:24













          yes, I understand. But which measure are you expecting to see distributed by this dimension? Should be smth like COUNT OF ROWS where Nr_Days_Calculated = 80 falls to '1 - TextA' member. It was simple in my case, because it was only count. Let's wait what you'll implement.

          – Alex Peshik
          Nov 29 '18 at 13:04





          yes, I understand. But which measure are you expecting to see distributed by this dimension? Should be smth like COUNT OF ROWS where Nr_Days_Calculated = 80 falls to '1 - TextA' member. It was simple in my case, because it was only count. Let's wait what you'll implement.

          – Alex Peshik
          Nov 29 '18 at 13:04













          Basically I need to dynamically associate an attribute of the dimension based on the Nr_Days_Calculated. The idea is to have be able to use this dimension as an analysis entry point to the metric group.

          – Ricardo Castro
          Nov 29 '18 at 17:11





          Basically I need to dynamically associate an attribute of the dimension based on the Nr_Days_Calculated. The idea is to have be able to use this dimension as an analysis entry point to the metric group.

          – Ricardo Castro
          Nov 29 '18 at 17:11




















          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%2f53490780%2fssas-dimension-attribute-based-on-a-ssas-calculated-measure%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

          Tonle Sap (See)

          I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

          Guatemaltekische Davis-Cup-Mannschaft