Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Raghda_Alshehhi
Frequent Visitor

Show % change for total yoy

I have a table which shows only totals per year, and i needto show the percentage change/growth on the same graph

What is the measure for that and which is the approriate graph type? e.g. year vs sales for each year

e.g. Table "total"

yearTotal
198610000
198723666
198845876

 

Also, i have a table that lists only entries for employees (acheivments) (Only i can ghow can i calculate day/month/year % change for this, with card showing the values in red - / or green + (depends if the value is less or more that the previos selected day/month/year

DateAchievments
12-01-2021New project
13-01-2021Employee of the month
14-01-2021Cost reduction initiative 

The idea is to monitor the changes/% for staff

all the queries here answers the changes for sum, but i din't find any solution for the total count

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Raghda_Alshehhi ,

 

You can calculate the total for the previous year as

previous total = CALCULATE(SUM('Table'[Total]),FILTER(ALLSELECTED('Table'),[year]=MAX('Table'[year])-1))+0

vstephenmsft_0-1656932380430.png

 

The percent change is then calculated as follows.

percentage = DIVIDE(SUM('Table'[Total])-[previous total],[previous total])+0

vstephenmsft_1-1656932388634.png

You can try the stacked column chart to dispaly.

vstephenmsft_2-1656932492804.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Raghda_Alshehhi ,

 

You can calculate the total for the previous year as

previous total = CALCULATE(SUM('Table'[Total]),FILTER(ALLSELECTED('Table'),[year]=MAX('Table'[year])-1))+0

vstephenmsft_0-1656932380430.png

 

The percent change is then calculated as follows.

percentage = DIVIDE(SUM('Table'[Total])-[previous total],[previous total])+0

vstephenmsft_1-1656932388634.png

You can try the stacked column chart to dispaly.

vstephenmsft_2-1656932492804.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors