Join 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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Tema
Could anyone please explain me how we convert the excel formula (highlighted in screenshot) to power BI explain me.
Thanks
chanikya A
Solved! Go to Solution.
Hi @achanikya ,
Assume that you have the table data as below screenshot, you can create a measure as below to get it. Please find the details in the attachment.
Percent =
VAR _2021 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Year] = 2021 )
VAR _2022 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Year] = 2022 )
VAR _percent =
IF ( ISBLANK ( _2021 ) || _2021 = 0, BLANK (), DIVIDE ( _2022 - _2021, _2021 ) )
RETURN
IF (
ISINSCOPE ( 'Table'[Year] ),
SUM ( 'Table'[Value] ),
_percent
)
What your raw data looks like? Could you please provide some sample data(exclude sensitive data) and your final expected result? Do you want to get the difference percentage between current year and previous year? Thank you.
Best Regards
Hi
You can try following DAX.
Measure = (SUM('TableName'[2022]) - SUM('TableName'[2021])) / SUM('TableName'[2021])
If you use one mesure to both years then this DAX will not work.
Thank you.
pls share the emai Id
Thanks
Chanikya A
Hi @achanikya ,
Assume that you have the table data as below screenshot, you can create a measure as below to get it. Please find the details in the attachment.
Percent =
VAR _2021 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Year] = 2021 )
VAR _2022 =
CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Year] = 2022 )
VAR _percent =
IF ( ISBLANK ( _2021 ) || _2021 = 0, BLANK (), DIVIDE ( _2022 - _2021, _2021 ) )
RETURN
IF (
ISINSCOPE ( 'Table'[Year] ),
SUM ( 'Table'[Value] ),
_percent
)
What your raw data looks like? Could you please provide some sample data(exclude sensitive data) and your final expected result? Do you want to get the difference percentage between current year and previous year? Thank you.
Best Regards
@Anonymous Hi thask for help
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 53 | |
| 41 | |
| 15 | |
| 13 |
| User | Count |
|---|---|
| 97 | |
| 83 | |
| 35 | |
| 29 | |
| 25 |