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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
nidhesh_tiwari
New Member

Calculate Change in percentage based on multiple Quarter Selection

Hi All ,

 

I am struggling to find the soultion for the below problem statement.

I have to create a measure to calculate the %change from selected quarter range. For example, we have data of 2023 from each month with salesDate.  

Input Data:

Month-YearQuarter-YearSalesAmount
01-2023Q1-202310

02-2023

Q1-202320
03-2023Q1-202330
04-2023Q2-202340
05-2023Q2-202350
06-2023Q2-202360
07-2023Q3-202370
08-2023Q3-202380
09-2023Q3-202390
10-2023Q4-2024100
11-2023Q4-2024110
12-2023Q4-2024120

 

So when Q1-2023, Q3-2023 & Q4-2023 are selected from slicer, desired result should be  i.e.

Quarter-YearSalesAmount% Change 
Q1-2023600.0%
Q3-2023240300%
Q4-202333037.5%

 

 but if only Q1-2023 & Q4-2023 are selected then the desired output should be

Quarter-YearSalesAmout% Change
Q1-2023600.0%
Q4-2024330450%

 

 

 @Greg @HotChilli @bhanu @bhanu_gautam @lbendlin

@Irwan 

 

Many thanks

2 REPLIES 2
Rakesh1705
Super User
Super User

Hi @nidhesh_tiwari one of the best way to solve this dynamic thing is by using offset formula. 
Source data

Rakesh1705_0-1722876407957.png

Current Amount

Rakesh1705_1-1722876436610.png

Previous amount using offset function

Rakesh1705_2-1722876463981.png

When All qtr is selected

Rakesh1705_3-1722876496639.png

When Random Qtrs are selected

Rakesh1705_4-1722876525433.png

if this solves your problem then accept the same as your solution.

lbendlin
Super User
Super User

The simplest approach would be to use Visual Calculations ( particularly the PREVIOUS function). But you will want to invest in a proper data model first, with a proper calendar table.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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