title: Slice a measure based on only one attribute in SSAS Tabular
body: <p>I am trying to create a measure which should slice the value based on only one dimension in SSAS tabular. </p>
  
  <p>e.g the cube has a measure Population. and it has dimensions Country and time the data is something like:</p>
  
  <pre><code>Crty_A : 2018 :100
  Crty_A : 2017 :200
  Crty_B : 2018: 50
  Crty_C : 2018: 25
  </code></pre>
  
  <p>The data in the measure should get aggreted only at country level. like when only country name is selected the data should be like:</p>
  
  <pre><code>Crty_A :300
  Crty_B : 50
  Crty_B : 25
  </code></pre>
  
  <p>But if time and the measure is selected the data should be:</p>
  
  <pre><code>2018 :100
  2017 :200
  2018: 50
  2018: 25
  </code></pre>
  
  <p>is there any way this can be achieved?</p>