Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I have one Bar chart Visualization and I need percentage Difference value from the previous value.
For Example below Image:
For example =
To get Percentage Formula is = (current value - previous value)/ previous value
(210-120)/120 = 90/120 = 3/4 = 75%
Below I am sharing .pbix file:
https://drive.google.com/open?id=1CBP0kt7eUoJqbVM-CR9xXQgapgsbE0vz
Solved! Go to Solution.
@mohittimpus Please create below measure to get percentage change
Measure =
VAR _currValue = MAX('Sample'[Value])
VAR _preValue = CALCULATE(MAX('Sample'[Value]),'Sample'[Value]<_currValue)
VAR _prevData = CALCULATE(SUM('Sample'[Data]),'Sample'[Value]=_preValue)
VAR _currData = SUM('Sample'[Data])
RETURN DIVIDE((_currData-_prevData),_prevData,0)
@mohittimpus Please create below measure to get percentage change
Measure =
VAR _currValue = MAX('Sample'[Value])
VAR _preValue = CALCULATE(MAX('Sample'[Value]),'Sample'[Value]<_currValue)
VAR _prevData = CALCULATE(SUM('Sample'[Data]),'Sample'[Value]=_preValue)
VAR _currData = SUM('Sample'[Data])
RETURN DIVIDE((_currData-_prevData),_prevData,0)
Thank you @Anonymous It is working fine and I got my Required output.