The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi! I'm trying to create a measure to calculate the % change of value based on my slicer selections (which is not in date format).
Here's the sample of my data. My slicer will be "Semester" and I would like to calculate the difference between value based on the selected semesters (up to all of them). For example, if i select semester AH2019 and AH2021, it will show -8% decrease. if i select AH2019, AH2020, AH2021, it will show the % change between all 3 semesters (18.57%, -22%).
Semester | Value | % difference |
AH 2019 | 7000 | |
AH 2020 | 8300 | |
AH 2021 | 6400 | |
SS 2019 | 10200 | |
SS 2020 | 18202 | |
SS 2021 | 8100 |
Please kindly assist. Your help is much much appreciated.
it will be (8100/8300)-1. the latest year will be the newest value
hi @bopeh_99
for "if i select AH2019, AH2020, AH2021, it will show the % change between all 3 semesters (18.57%, -22%)",
how are you going to showcase this part?
id like to show them in a visual like this:
please ignore the values here. they're different from the table i included but its the same concept
User | Count |
---|---|
26 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
30 | |
15 | |
12 | |
12 | |
7 |