This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I have data like below.
Type Year Revenue
A 2016 100
A 2017 200
I want to create a report for year = 2017 as below
Type Revenue YTD Revenue ITD
A 200 300
How to create Revenue ITD Metric so that even if I apply filter on year=2017, it should still consider 2016 records and show it in ITD metric. Running SUM will not help here.
Regards,
Akash
Solved! Go to Solution.
I assume the ITD is about all years before the one that is selected
Revenue ITD:=
VAR SelectedYear = MAX(Table1[Year])
RETURN
CALCULATE(SUM(Table1[Revenue]),Table1[Year]<=SelectedYear)
HI @akj2784,
Use the below DAX statement
Revenue ITD = CALCULATE(SUM(Table3[Revenue YTD]), FILTER(ALL(Table3[Year]), Table3[Year] <= SELECTEDVALUE(Table3[Year])))
Screenshot below for your reference, The Filter applied is Year = 2018
Regards,
Thejeswar
HI @akj2784,
Use the below DAX statement
Revenue ITD = CALCULATE(SUM(Table3[Revenue YTD]), FILTER(ALL(Table3[Year]), Table3[Year] <= SELECTEDVALUE(Table3[Year])))
Screenshot below for your reference, The Filter applied is Year = 2018
Regards,
Thejeswar
I assume the ITD is about all years before the one that is selected
Revenue ITD:=
VAR SelectedYear = MAX(Table1[Year])
RETURN
CALCULATE(SUM(Table1[Revenue]),Table1[Year]<=SelectedYear)
Check out the April 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 |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 36 | |
| 29 | |
| 22 | |
| 21 |