This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi All,
I'm working on automating our excel reports to PowerBI and in few cases we have an incremental addition from day 1 and in another case an addition of one year above.
Attached below link has the sample data. Highlied in Yellow values need to be transformed in PowerBI (Column E & F), Kinldy help.
https://docs.google.com/spreadsheets/d/1GlcUWtb1hYPf8l1RVgIgz6JxTug30zobTo0BT_5nxL4/edit#gid=0
Regards
Naveed
Solved! Go to Solution.
Create a dimension table for year and create a single to many relationship with the main table:
Use this 'Year Table'[dYear] field in the visual.
Create and format the following measures:
Sum Existing =
SUM(fTable[Existing])Sum New =
SUM(fTable[New])Total =
[Sum Existing] + [Sum New]Running Total New =
CALCULATE (
[Sum New],
FILTER (
ALL ( 'Year Table' ),
'Year Table'[dYear] <= MAX ( 'Year Table'[dYear] )
)
)
Renewal % =
VAR _PY =
CALCULATE (
[Running Total New],
FILTER (
ALL ( 'Year Table' ),
'Year Table'[dYear]
= MAX ( 'Year Table'[dYear] ) - 1
)
)
RETURN
DIVIDE ( [Sum Existing], _PY )
Renewal % based on LY =
VAR _PY =
CALCULATE (
[Total],
FILTER (
ALL ( 'Year Table'[dYear] ),
'Year Table'[dYear]
= MAX ( 'Year Table'[dYear] ) - 1
)
)
RETURN
DIVIDE ( [Sum Existing], _PY )
Proud to be a Super User!
Paul on Linkedin.
This is awesome! It worked, Thank you very much 🙂
Create a dimension table for year and create a single to many relationship with the main table:
Use this 'Year Table'[dYear] field in the visual.
Create and format the following measures:
Sum Existing =
SUM(fTable[Existing])Sum New =
SUM(fTable[New])Total =
[Sum Existing] + [Sum New]Running Total New =
CALCULATE (
[Sum New],
FILTER (
ALL ( 'Year Table' ),
'Year Table'[dYear] <= MAX ( 'Year Table'[dYear] )
)
)
Renewal % =
VAR _PY =
CALCULATE (
[Running Total New],
FILTER (
ALL ( 'Year Table' ),
'Year Table'[dYear]
= MAX ( 'Year Table'[dYear] ) - 1
)
)
RETURN
DIVIDE ( [Sum Existing], _PY )
Renewal % based on LY =
VAR _PY =
CALCULATE (
[Total],
FILTER (
ALL ( 'Year Table'[dYear] ),
'Year Table'[dYear]
= MAX ( 'Year Table'[dYear] ) - 1
)
)
RETURN
DIVIDE ( [Sum Existing], _PY )
Proud to be a Super User!
Paul on Linkedin.
This is awesome! It worked, Thank you very much 🙂
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 25 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 20 | |
| 18 | |
| 18 |