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
Anonymous
Not applicable

How to keep years the same regardless of cashflow start date

Currently I have built a table that has several line items that include yearly cashflows. I am looking to establish in the table the same time frame for the whole chart. Ex. I may have one line item with cash flows in Year 1 (2017),Year 2 (2018),Year 3 (2019),Year 4 (2020) which his exaclty what I want. The next line item has cash flows starting in Year 1 (2019), Year 2 (2020), Year 3 (2021), Year 4 (2020). I'll provide a better example before but I would like to know how to have the second line item report a 0 value for the first two years until 2019 comes into play.

 

 

Line 1    2017         2018         2019        2020

             $1,000      $2,000      $3,000      $4,000

 

Line 2    2017         2018         2019        2020

              $0             $0            $2,500     $3,500

 

 

I'm new to Power Bi so my question/description is most likely a poor one. But above is how I would like my numbers to appear. Regardless of when the cashflows start I would like to keep the same year permeters. currently on line 2 -- Year 1 would be $2,500 even though it starts in 2019. Any help would be greatly appreciated.

1 ACCEPTED SOLUTION
Iadem
Frequent Visitor

If you need result how at screenshot, then use measure

Measure =
IF ( Sum[value2] > 0; SUM ( [value2] ); 0 )

1.JPG

 

DB:

1.JPG

View solution in original post

2 REPLIES 2
Iadem
Frequent Visitor

If you need result how at screenshot, then use measure

Measure =
IF ( Sum[value2] > 0; SUM ( [value2] ); 0 )

1.JPG

 

DB:

1.JPG

v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

Could you post your real table structures(including the measures you're using) with some sample data? So that we can better assist on this issue? Smiley Happy

 

Regards

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.