Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Percentage Increase Previous Years Concatenated Matrix Table

Hi All,

 

Having difficulties solving this. Appreciate everyone's help and efforts. Thanks in advance.

 

Table

Week NoyearAmount
12019100
22019200
32019300
12020500
22020600
32020700
12021600
22021850
32021900

 

Desired Output - Matrix Table

Week No201920202021
1xx500%, 20%
2xx325%, 42%
3xx200%, 29%

 

I want each year to show the percentage increase/decrease of the previous two years concatenated

 

Thanks. 🙏

3 Replies

  • Anonymous , if the above three are measured you can create two measures and concat those

     

    This Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
    Last Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

    Last to Last Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

     

    diff % = divide([This Year]-[Last Year ],[Last Year ])*100 & "% , " & divide([Last Year]-[Last to Last Year ],[Last to Last Year ])*100  & "% "

     

    Power BI — Year on Year with or Without Time Intelligence
    https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
    https://www.youtube.com/watch?v=km41KfM_0uA

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you so much.

      Have a wonderful day.

  • ebhomium's avatar
    ebhomium
    Regular Visitor

    HOW CAN I CALCULTE PERCENTAGE INCREASE OF NUMBER OF EV VEHICLES AND EV CHARGERS ON POWER BIHOW CAN I CALCULATE THE PERCENTAGE INCREASE IN NUMBERS OF ELECTRIC VEHICLES AND EV CHARGES PER YEAR?