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
Bisco
Frequent Visitor

Percentage growth

Hello Everyone!

 

I have an Issue, I'd like to make a chart which the columns are the volume (by month) and the line is the percentual growth comparing the previous period, ex:

 

 JanFevMar
Volume102030
Percentual Growth                     -  100%50%

 

Best Regards, Luiz

1 ACCEPTED SOLUTION

@Bisco

 

Then you can do a group by first for your table. Go to Edit Queries -> Group By:

 

1.PNG2.PNG

 

Thanks,
Xi Jin.

View solution in original post

3 REPLIES 3
v-xjiin-msft
Solution Sage
Solution Sage

@Bisco

 

Was your source table just the same as the shared sample data? If so, to achieve your requirement. You can refer to following steps. If not, please share us your source table structure.

 

1. Go to Edit Queries - > Transform menu - > Unpivot your table and go to Add Column menu - > add an new index column for it:

 

1.PNG2.PNG

 

2. Close & Apply, create a new calculated column to calculate the Percentual Growth. The expression is like:

 

percentual growth =
IF (
    LOOKUPVALUE ( Table1[Volume], Table1[Index], Table1[Index] - 1 )
        = BLANK (),
    0,
    (
        Table1[Volume]
            - LOOKUPVALUE ( Table1[Volume], Table1[Index], Table1[Index] - 1 )
    )
        / LOOKUPVALUE ( Table1[Volume], Table1[Index], Table1[Index] - 1 )
)

 

3. Then create the Line and stacked column chart, put Volume in Column values of chart and Percentual Growth in Line values. Result shows like this:

 

3.PNG

 

Thanks,
Xi Jin.

Hello Xi Jin, 

 

First of all, thank you for answering me!

 

I have a trouble there, the total of each month is a sum of a lot of rows.

 

My data is structured like this:

 

MonthVolume
Jan5
Jan2
Jan3
Feb1
Feb2
Feb4
Feb3
Feb10
Mar15
Mar15

 

Do you have any idea to help me?

 

Best Regards, Luiz

@Bisco

 

Then you can do a group by first for your table. Go to Edit Queries -> Group By:

 

1.PNG2.PNG

 

Thanks,
Xi Jin.

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.