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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply

Overall Satisfaction Year on Year difference

Good Afternoon,

I have a matrix table that has survey question from this year and last year and I need to idicate whether the score has gone up or down on the percentage of satisfaction. The overal satisfaction measure is a calculation that counts if respondent Strongly Agrees or Agrees, which works perfectly. When I add the year in it also works perfectly, I am trying to now add a difference column in. So in Rows i have Q's, Columns I have Year, Values I have % Overall (overall measure is (% Overall = [4&5Agree]/Overal Totals 1-5]. I've tried previous date etc... but think I need to make 2 x % Overall one for 2024 and another for 2023 and then cal difference unless anyone has suggestions. Thank  you 

 20232024Diff %
Q175%62%-17.3%
Q285%86%1.2%
Q350%50%0.0%
1 ACCEPTED SOLUTION

Thank you, managed to get this to work. Very simple in the end. Created three seperate measure, one to count 2023, and other 2024, and then just a percentage diff for the third

View solution in original post

3 REPLIES 3

Thank you, managed to get this to work. Very simple in the end. Created three seperate measure, one to count 2023, and other 2024, and then just a percentage diff for the third

amitchandak
Super User
Super User

@Suzie_Suze_Sue1 , if you are using a date table you can have diff measure and switch in GT, in case you are using year on column from date table

 

if(isinscope(Date[Year]), [Measure], divide([Measure] - CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-4,QUARTER)) , CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-4,QUARTER)) ) )

 

else you can create the same last year's measure using a separate qtr year table. Make sure you use year, qtr from date or qtr year table

 

Last year Qtr = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'), 'Date'[Year]=max('Date'[Year]) && 'Date'[Qtr]=max('Date'[Qtr]) ))

 

and use in same measure like above

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for the response.

I am finding it hard to create a difference measure. The response table is like this

YearResponseIDQuestion1Rating
2024      R_8WORaVEsXbxhxy3      

Question 1         

     4
2024R_8XgPAmjgKQ4LY63Question 2     3
2024R_8ydUBJ9RtRw1JYdQuestion 3     4
2024R_8YEcQhDWrdf60eZQuestion 4     4
2023R_1Ho65FSthee3hNj3Question 5     5
2023R_1Ho65OKOLP3hPL4Question 6     4
2023R_1Ho65FSCAZ3hjk9Question 7     5
2023R_1Ho65FSCAZ3hwE4Question 8      5

 

I have a measure which is called Overall % which is a percentage of those answer 4 or 5 compared against the totals I have tried what I think you mean above and it just isn;t working or I am doing something wrong.

I can pull throurhg the following table but ideally would like to add a difference column

 

 2023         2024      
Question 1      75%62%
Question 285%86%
Question 350%50%

 

Similar to this which is in excel

 2023  2024        Difference
Question 1 75%  62%-17.30%
Question 2 85%86%1.20%
Question 3 50%50%0.00%

 

I have a date table, but just doesn't seem to like it when I am using the measure withn the diff measure.

 

Thanks

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.