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
bvsaicharitha
Helper I
Helper I

Sorting and Calculation

Hi,

 

I have a data with multiple products, year, month and the values.

 

I want to plot the line graph showing the % growth of value from Jan to Feb for each year and product as a filter Can you help with code or the measure I need to use for the graph. 

 

Power BI.PNG

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @bvsaicharitha,

 

Do you want to get the %change like below?

 

Untitled.png

 

If you want to get the %change above, you could refer to the measures below.

 

Jan = CALCULATE(SUM(Table1[Sales]),FILTER('Table1','Table1'[Month number]=1&&'Table1'[Year]=MAX('Table1'[Year])))

Feb = CALCULATE(SUM(Table1[Sales]),FILTER('Table1','Table1'[Month number]=2&&'Table1'[Year]=MAX('Table1'[Year])))

%change = DIVIDE([Feb]-[Jan],[Jan])

If you need additional help, please share the output you desired.

 

In addition, you could have a reference of Measures – Month to Month Percent Change.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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-piga-msft
Resident Rockstar
Resident Rockstar

Hi @bvsaicharitha,

 

Do you want to get the %change like below?

 

Untitled.png

 

If you want to get the %change above, you could refer to the measures below.

 

Jan = CALCULATE(SUM(Table1[Sales]),FILTER('Table1','Table1'[Month number]=1&&'Table1'[Year]=MAX('Table1'[Year])))

Feb = CALCULATE(SUM(Table1[Sales]),FILTER('Table1','Table1'[Month number]=2&&'Table1'[Year]=MAX('Table1'[Year])))

%change = DIVIDE([Feb]-[Jan],[Jan])

If you need additional help, please share the output you desired.

 

In addition, you could have a reference of Measures – Month to Month Percent Change.

 

Best Regards,

Cherry

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

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.