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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HagenHawke
Frequent Visitor

Need Help with Half on Half and Year on Year Movements with Financial Data

Hi Community,

I am very new to Power BI. I just completed my Power BI Beginners and Intermediate courses 3 weeks ago and taking on a small project within my team to convert one report from excel to Power BI. I am the first person in my wider team to use Power BI and really in need of some guidance.

My data has half year and full year results for few companies and I want to build some smarts in my dashboard where users can filter to different periods and see the movements between those selected periods.

For example:

They can select 1H18 v 1H19 or 1H18 v 2H19 and ablet to see the movement between this period.

Below is a sample data of what my data looks like.

 

CategoryCompanyPeriodNameValue
Earnings and ReturnsA1H18Cash earnings1,200
Earnings and ReturnsA1H19Cash earnings2,300
Earnings and ReturnsA2H18Cash earnings1,108
Earnings and ReturnsA2H19Cash earnings2,208
Earnings and ReturnsAFY18Cash earnings2,308
Earnings and ReturnsAFY19Cash earnings4,508
Earnings and ReturnsC1H18Cash earnings121
Earnings and ReturnsC1H19Cash earnings209
Earnings and ReturnsC2H18Cash earnings56
Earnings and ReturnsC2H19Cash earnings269
Earnings and ReturnsCFY18Cash earnings177
Earnings and ReturnsCFY19Cash earnings478
Earnings and ReturnsE1H18Cash earnings1,251
Earnings and ReturnsE1H19Cash earnings2,586
Earnings and ReturnsE2H18Cash earnings2,834
Earnings and ReturnsE2H19Cash earnings2,968
Earnings and ReturnsEFY18Cash earnings4,085
Earnings and ReturnsEFY19Cash earnings5,554
RevenuesA1H18Net Interest Income5,000
RevenuesA1H19Net Interest Income6,200
RevenuesA2H18Net Interest Income5,212
RevenuesA2H19Net Interest Income6,225
RevenuesAFY18Net Interest Income10,212
RevenuesAFY19Net Interest Income12,425
RevenuesC1H18Net Interest Income321
RevenuesC1H19Net Interest Income569
RevenuesC2H18Net Interest Income321
RevenuesC2H19Net Interest Income520
RevenuesCFY18Net Interest Income642
RevenuesCFY19Net Interest Income1,089
RevenuesE1H18Net Interest Income7,215
RevenuesE1H19Net Interest Income6,958
RevenuesE2H18Net Interest Income7,023
RevenuesE2H19Net Interest Income6,213
RevenuesEFY18Net Interest Income14,238
RevenuesEFY19Net Interest Income13,171
ExpensesA1H18Total Operating Expenses-2,554
ExpensesA1H19Total Operating Expenses-2,431
ExpensesA2H18Total Operating Expenses-2,727
ExpensesA2H19Total Operating Expenses-2,518
ExpensesAFY18Total Operating Expenses-5,281
ExpensesAFY19Total Operating Expenses-4,949
ExpensesC1H18Total Operating Expenses-621
ExpensesC1H19Total Operating Expenses-325
ExpensesC2H18Total Operating Expenses-423
ExpensesC2H19Total Operating Expenses-369
ExpensesCFY18Total Operating Expenses-1,044
ExpensesCFY19Total Operating Expenses-694
ExpensesE1H18Total Operating Expenses-4,215
ExpensesE1H19Total Operating Expenses-4,689
ExpensesE2H18Total Operating Expenses-3,689
ExpensesE2H19Total Operating Expenses-4,578
ExpensesEFY18Total Operating Expenses-7,904
ExpensesEFY19Total Operating Expenses-9,267

I totally appreciate your help.

 

Warm regards,

HagenHawke

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

Hi @HagenHawke ,

 

If you want it be dynemic, you will need to create two slicer tables as below:

slicer1 = DISTINCT('Table'[Period])

slicer2 = DISTINCT('Table'[Period])

Then create a measure like below:

Measure = 
var selected1 = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Company],'Table'[Name]),'Table'[Period]=SELECTEDVALUE(slicer1[Period])))
var selected2 = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Company],'Table'[Name]),'Table'[Period]=SELECTEDVALUE(slicer2[Period])))
return
(selected1-selected2)/selected2

Since it's a measure, it will be generated under each column if you put it into value field.

Then you could turn off the text wrap and hide the extra columns

vjaywmsft_0-1654767974885.png

vjaywmsft_1-1654768292421.png

vjaywmsft_2-1654768314890.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @HagenHawke ,

 

If you want it be dynemic, you will need to create two slicer tables as below:

slicer1 = DISTINCT('Table'[Period])

slicer2 = DISTINCT('Table'[Period])

Then create a measure like below:

Measure = 
var selected1 = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Company],'Table'[Name]),'Table'[Period]=SELECTEDVALUE(slicer1[Period])))
var selected2 = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Company],'Table'[Name]),'Table'[Period]=SELECTEDVALUE(slicer2[Period])))
return
(selected1-selected2)/selected2

Since it's a measure, it will be generated under each column if you put it into value field.

Then you could turn off the text wrap and hide the extra columns

vjaywmsft_0-1654767974885.png

vjaywmsft_1-1654768292421.png

vjaywmsft_2-1654768314890.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thank you so much for taking your time to show me this. This is very helpful for a Power BI Beginner like me. I totally appreciate it.

 

Kind regards,

M

HagenHawke
Frequent Visitor

The out put would look something like below:

                            User would select different   periods like the ones  highlighted in 'orange' to see the growth between periods.

 

CompanyName1H181H192H182H19FY18FY191H19 v 2H181H19 v 1H182H19 v 1H192H19 v 2H18FY19 v FY18
ACash earnings        1,200              2,300        1,108          2,208                2,308          4,508107.6%91.7%-4.0%99.3%95.3%
ANet Interest Income        5,000              6,200        5,212          6,225              10,212        12,42519.0%24.0%0.4%19.4%21.7%
ATotal Operating Expenses-      2,554-             2,431-      2,727-        2,518-               5,281-        4,949-10.9%-4.8%3.6%-7.7%-6.3%
CCash earnings           121                 209             56             269                    177             478273.2%72.7%28.7%380.4%170.1%
CNet Interest Income           321                 569           321             520                    642          1,08977.3%77.3%-8.6%62.0%69.6%
CTotal Operating Expenses-         621-                325-         423-            369-               1,044-            694-23.2%-47.7%13.5%-12.8%-33.5%
ECash earnings        1,251              2,586        2,834          2,968                4,085          5,554-8.8%106.7%14.8%4.7%36.0%
ENet Interest Income        7,215              6,958        7,023          6,213              14,238        13,171-0.9%-3.6%-10.7%-11.5%-7.5%
ETotal Operating Expenses-      4,215-             4,689-      3,689-        4,578-               7,904-        9,26727.1%11.2%-2.4%24.1%17.2%
danextian
Super User
Super User

Hi @HagenHawke ,

 

I am not sure what you mean by movements but you can certainly create a measure that will get the difference between two periods. Please refer to the this pbix -Difference Between Two Periods that are not Date Time Keys 

danextian_0-1654483064163.png

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
jsaunders_zero9
Responsive Resident
Responsive Resident

Hi @HagenHawke 

Can you sketch on paper what you expect the end result to be? This will help someone assist you.

Thank you

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.