Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I need to calculate the percent change between two values based on the selected slicers. I have 4 years of data on my graph (see below), and I'd like to calculate the percent change in price based on the below example.
This is what my graph currently looks like along with the two slicers.
I want to be able to select a year and then two months and get a percent change for the two prices, For example, the below would be a -6% change from October to April.
Below is what I came up with, but haven't been able to make it work. Any input would be greatly appreciated:
Solved! Go to Solution.
@Anonymous
Try this measure please:
% Change ASP_Historical =
VAR __MinDateValue =
CALCULATE(
[ASP],
FORMAT('DATETABLE'[Date],"mmyy") = FORMAT(MIN('DATETABLE'[Date]),"mmyy"),
ALLSELECTED( 'DATETABLE' )
)
VAR __MaxDateValue =
CALCULATE(
[ASP],
FORMAT('DATETABLE'[Date],"mmyy") = FORMAT(Max('DATETABLE'[Date]),"mmyy"),
ALLSELECTED( 'DATETABLE' )
)
RETURN
DIVIDE( __MaxDateValue - __MinDateValue , __MinDateValue )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
Try this measure please:
% Change ASP_Historical =
VAR __MinDateValue =
CALCULATE(
[ASP],
FORMAT('DATETABLE'[Date],"mmyy") = FORMAT(MIN('DATETABLE'[Date]),"mmyy"),
ALLSELECTED( 'DATETABLE' )
)
VAR __MaxDateValue =
CALCULATE(
[ASP],
FORMAT('DATETABLE'[Date],"mmyy") = FORMAT(Max('DATETABLE'[Date]),"mmyy"),
ALLSELECTED( 'DATETABLE' )
)
RETURN
DIVIDE( __MaxDateValue - __MinDateValue , __MinDateValue )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |