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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
shrmehta
Advocate IV
Advocate IV

Calculating growth & Rearranging data lables

I have monthly data from April 14 to June 16 in this format (assuming only 2 customers)

 

 

Untitled1.jpg

I want to compare the revenue from the first and last month and display the growth in percentage.  Does someone know how I can do this?

 

Also while using bar chart / line chart I want the month to be displayed from April to March but Power BI automatically displays it from January to December. Is there a way to rearrange this?

6 REPLIES 6
LuisQuedas
Advocate I
Advocate I

Hi,

few questions to suggest an approach to answer your post,

- We need to create a  new column with the Month and Year, How is difined your Fiscal Year? April to March?

- When you say you want to compare First Month with Last Month, Does it mean Compare April 14 with Junw 16?

- You want to compare the all grosth, i.e., you don't want to split it by customer, isn't it?

 

Cheers, Luis

 

Hi Luis,

 

My fiscal year is "April to March". When I am looking at FY 16 on a bar chart which is supposed to be from April 15 to March 16, since I do not have a year along with my month it displays January to March before April which will give the wrong view as it is January 16, not January 15. I tried adding year to the months but PBI again displays the axis labels on the chart as "01-01-2016" instead of "January 2016"

 

I want to compare April 14 with June 16. I want the growth split by customer too. So if I want the growth for all customers, I get a value but if I want to slice it to display only for customer ABC, I should get the growth for customer ABC too. 

 

-Shruti

Hi shrmehta,

 

Yes, I think this could be done.

We need another column to define your fisnal Year, but we first need a date column (or a date table).

Fiscal Year =
  CONCATENATE("FY",
                IF(MONTH('Table'[Date]) <=3,
                       VALUE(FORMAT('Table'[Date],"YY")),
                       VALUE(FORMAT('Table'[Date],"YY")) +1
                     )
                                )

You may check the thread below for reference: 

Fiscal Year

Add the date column in the Axis of the visual, Fiscal Year as filter(We could also create Slicer visual here), then the date should be start from April. See:

12.PNG13.PNG

 

For "revenue from the first and last month and display the growth in percentage", could you please explain a bit here? 

What would you like to compare here, only with the last and first month values?

If yes, then we could take use of lookupvalue function to get the actual revenue data, then divide them.

 

I will share the testing results later, by the way, is the image you posted show your data sample? I will use that for testing.

If it is not your data sample, please share it. So that we will suggest a more suitable suggestion.

Regards

Hi @v-micsh-msft

 

Thank you for your solution. I shall try that. 

Here is a sample data 

Data.jpg

I want to compare first and last month values only. But I also want to be able to use a slicer when I want to compare a particular customer only.

 

-Shruti Mehta

Hi shrmehta,

Would it be available for you to share the data in a Table format?

I only need ten rows of the data sample which could represent your data structure. I am not able to figure out the data in your uploaded image, as the items in the image are clouding.

Regards

 

Hi @v-micsh-msft

 

Including the entire table

MonthFYQuarterCustomer Group Name USD 
Apr-14FY 15Q 1A         24,959.06
Apr-14FY 15Q 1B         12,208.07
Apr-14FY 15Q 1C       617,797.88
Apr-14FY 15Q 1D         19,722.69
Apr-14FY 15Q 1E           9,438.53
Apr-14FY 15Q 1F         17,394.75
Apr-14FY 15Q 1G       746,503.10
May-14FY 15Q 1A       666,325.72
May-14FY 15Q 1B       633,191.13
May-14FY 15Q 1C         68,692.46
May-14FY 15Q 1D         24,959.06
May-14FY 15Q 1E         16,249.50
May-14FY 15Q 1F         13,841.54
May-14FY 15Q 1G         12,614.67
Jun-14FY 15Q 1A       683,747.14
Jun-14FY 15Q 1B       670,715.35
Jun-14FY 15Q 1C         68,420.27
Jun-14FY 15Q 1D         31,334.72
Jun-14FY 15Q 1E         24,959.06
Jun-14FY 15Q 1F         14,883.75
Jun-14FY 15Q 1G         13,814.15
Jul-14FY 15Q 2A       683,757.66
Jul-14FY 15Q 2B       588,355.13
Jul-14FY 15Q 2C         71,060.72
Jul-14FY 15Q 2D         67,943.27
Jul-14FY 15Q 2E         39,225.95
Jul-14FY 15Q 2F         30,183.77
Jul-14FY 15Q 2G         13,495.87
Aug-14FY 15Q 2A       683,747.03
Aug-14FY 15Q 2B       640,403.00
Aug-14FY 15Q 2C         67,032.10
Aug-14FY 15Q 2D         62,497.81
Aug-14FY 15Q 2E         42,950.00
Aug-14FY 15Q 2F         17,089.78
Aug-14FY 15Q 2G         13,367.00
Sep-14FY 15Q 2A       689,211.15
Sep-14FY 15Q 2B       651,497.33
Sep-14FY 15Q 2C       103,322.11
Sep-14FY 15Q 2D         67,128.44
Sep-14FY 15Q 2E         42,650.00
Sep-14FY 15Q 2F         19,221.75
Sep-14FY 15Q 2G         13,334.02
Oct-14FY 15Q 3A       685,930.36
Oct-14FY 15Q 3B       648,580.70
Oct-14FY 15Q 3C       398,016.14
Oct-14FY 15Q 3D         66,453.37
Oct-14FY 15Q 3E         63,845.75
Oct-14FY 15Q 3F         42,650.00
Oct-14FY 15Q 3G         15,355.23
Nov-14FY 15Q 3A       685,882.18
Nov-14FY 15Q 3B       630,634.31
Nov-14FY 15Q 3C       579,056.88
Nov-14FY 15Q 3D         99,046.94
Nov-14FY 15Q 3E         66,195.41
Nov-14FY 15Q 3F         42,650.00
Nov-14FY 15Q 3G         18,112.00
Dec-14FY 15Q 3A       685,859.90
Dec-14FY 15Q 3B       628,403.73
Dec-14FY 15Q 3C       555,977.91
Dec-14FY 15Q 3D         88,698.08
Dec-14FY 15Q 3E         72,903.52
Dec-14FY 15Q 3F         39,400.28
Dec-14FY 15Q 3G         14,437.80
Jan-15FY 15Q 4A       682,857.90
Jan-15FY 15Q 4B       583,480.04
Jan-15FY 15Q 4C       347,321.12
Jan-15FY 15Q 4D         92,871.79
Jan-15FY 15Q 4E         72,369.75
Jan-15FY 15Q 4F         40,461.10
Jan-15FY 15Q 4G         17,781.50
Feb-15FY 15Q 4A       673,210.35
Feb-15FY 15Q 4B       649,678.36
Feb-15FY 15Q 4C       415,308.09
Feb-15FY 15Q 4D         93,216.69
Feb-15FY 15Q 4E         75,885.39
Feb-15FY 15Q 4F         40,300.00
Feb-15FY 15Q 4G         22,256.76
Mar-15FY 15Q 4A       739,030.14
Mar-15FY 15Q 4B       672,688.31
Mar-15FY 15Q 4C       648,282.83
Mar-15FY 15Q 4D       125,675.88
Mar-15FY 15Q 4E         92,664.20
Mar-15FY 15Q 4F         40,300.00
Mar-15FY 15Q 4G         21,270.40
Apr-15FY 16Q 1A       910,786.40
Apr-15FY 16Q 1B       838,476.55
Apr-15FY 16Q 1C       672,602.40
Apr-15FY 16Q 1D       609,004.88
Apr-15FY 16Q 1E       109,387.64
Apr-15FY 16Q 1F         92,345.22
Apr-15FY 16Q 1G         58,055.48
May-15FY 16Q 1A       917,949.20
May-15FY 16Q 1B       798,071.82
May-15FY 16Q 1C       672,573.83
May-15FY 16Q 1D       563,909.79
May-15FY 16Q 1E       108,874.61
May-15FY 16Q 1F         99,204.79
May-15FY 16Q 1G         97,121.48
Jun-15FY 16Q 1A   8,867,272.78
Jun-15FY 16Q 1B       864,595.38
Jun-15FY 16Q 1C       672,669.77
Jun-15FY 16Q 1D       587,836.57
Jun-15FY 16Q 1E       128,142.07
Jun-15FY 16Q 1F       107,800.27
Jun-15FY 16Q 1G         82,756.97
Jul-15FY 16Q 2A       145,182.05
Jul-15FY 16Q 2B       127,001.07
Jul-15FY 16Q 2C         40,300.00
Jul-15FY 16Q 2D         21,339.14
Jul-15FY 16Q 2E         15,403.12
Jul-15FY 16Q 2F           6,526.25
Jul-15FY 16Q 2G               465.41
Aug-15FY 16Q 2A   1,101,051.52
Aug-15FY 16Q 2B       834,214.52
Aug-15FY 16Q 2C       663,638.65
Aug-15FY 16Q 2D       590,827.99
Aug-15FY 16Q 2E       197,747.95
Aug-15FY 16Q 2F       155,752.04
Aug-15FY 16Q 2G       147,927.23
Sep-15FY 16Q 2A   1,046,057.75
Sep-15FY 16Q 2B       927,190.60
Sep-15FY 16Q 2C       709,472.67
Sep-15FY 16Q 2D       563,062.79
Sep-15FY 16Q 2E       236,218.29
Sep-15FY 16Q 2F       169,333.56
Sep-15FY 16Q 2G       144,294.97
Oct-15FY 16Q 3A   2,780,386.82
Oct-15FY 16Q 3B   1,049,473.82
Oct-15FY 16Q 3C       858,644.08
Oct-15FY 16Q 3D       563,968.74
Oct-15FY 16Q 3E       426,858.55
Oct-15FY 16Q 3F       155,073.34
Oct-15FY 16Q 3G       153,563.13
Nov-15FY 16Q 3A       132,042.42
Nov-15FY 16Q 3B       130,633.85
Nov-15FY 16Q 3C         60,818.34
Nov-15FY 16Q 3D         46,468.69
Nov-15FY 16Q 3E         19,798.47
Nov-15FY 16Q 3F               456.40
Nov-15FY 16Q 3G       (28,686.67)
Dec-15FY 16Q 3A   1,114,863.98
Dec-15FY 16Q 3B   1,010,288.07
Dec-15FY 16Q 3C       888,850.79
Dec-15FY 16Q 3D       601,190.44
Dec-15FY 16Q 3E       550,225.79
Dec-15FY 16Q 3F       226,424.60
Dec-15FY 16Q 3G       140,539.45
Jan-16FY 16Q 4A   1,221,077.53
Jan-16FY 16Q 4B   1,135,349.83
Jan-16FY 16Q 4C       863,530.80
Jan-16FY 16Q 4D       588,382.43
Jan-16FY 16Q 4E       534,577.49
Jan-16FY 16Q 4F       249,490.21
Jan-16FY 16Q 4G       144,523.53
Feb-16FY 16Q 4A   1,162,356.30
Feb-16FY 16Q 4B       862,032.55
Feb-16FY 16Q 4C       634,191.59
Feb-16FY 16Q 4D       580,227.57
Feb-16FY 16Q 4E       534,793.82
Feb-16FY 16Q 4F       266,279.21
Feb-16FY 16Q 4G       152,122.93
Mar-16FY 16Q 4A   1,418,886.31
Mar-16FY 16Q 4B   1,253,947.77
Mar-16FY 16Q 4C       728,817.69
Mar-16FY 16Q 4D       589,371.75
Mar-16FY 16Q 4E       553,435.24
Mar-16FY 16Q 4F       364,436.39
Mar-16FY 16Q 4G       290,963.40
Apr-16FY 17Q 1A   1,539,402.43
Apr-16FY 17Q 1B   1,250,625.85
Apr-16FY 17Q 1C       595,116.01
Apr-16FY 17Q 1D       580,387.20
Apr-16FY 17Q 1E       528,058.41
Apr-16FY 17Q 1F       308,263.33
Apr-16FY 17Q 1G       150,746.44
May-16FY 17Q 1A   1,531,447.85
May-16FY 17Q 1B   1,285,027.76
May-16FY 17Q 1C       654,737.79
May-16FY 17Q 1D       591,821.10
May-16FY 17Q 1E       499,918.72
May-16FY 17Q 1F       254,173.61
May-16FY 17Q 1G       146,508.60
Jun-16FY 17Q 1A   1,581,348.88
Jun-16FY 17Q 1B   1,507,006.18
Jun-16FY 17Q 1C       588,081.83
Jun-16FY 17Q 1D       578,200.40
Jun-16FY 17Q 1E       561,126.57
Jun-16FY 17Q 1F       334,345.69
Jun-16FY 17Q 1G       129,429.41

 

Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.