Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
akj2784
Post Partisan
Post Partisan

ITD Metric in Power BI

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

2 ACCEPTED SOLUTIONS
Stachu
Community Champion
Community Champion

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)


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

Thejeswar
Resident Rockstar
Resident Rockstar

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

 

screenshot.PNG

 

 

Regards,

Thejeswar

View solution in original post

2 REPLIES 2
Thejeswar
Resident Rockstar
Resident Rockstar

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

 

screenshot.PNG

 

 

Regards,

Thejeswar

Stachu
Community Champion
Community Champion

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)


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors