Forum Discussion

s15's avatar
s15
Icon for Helper III rankHelper III
9 years ago
Solved

Best practices for pivoting dimension

Hi all,   I have a dataset named financial data which comprises of list of products, sales, segment and country or so on (see the screen below)     Now I need to see which product, segment...
  • v-jiascu-msft's avatar
    9 years ago

    Hi s15,

     

    Yes, we need one table and two measures in this scenario. I believe there are also other ways.

    I sampled a table from yours. And the two measures are:

     

    Sales2013 =
    CALCULATE ( SUM ( 'Financials'[Sales] ), 'Financials'[Year] = 2013 )
    Sales2014 =
    CALCULATE ( SUM ( Financials[Sales] ), 'Financials'[Year] = 2014 )

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Best Regards!

    Dale