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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Mario_Engel
New Member

Calculating end date from start date + duration in months

Hi,

I have a set of data and I am trying to visualize project income over time using a Line and Stack Column Chart

Deal IdAmountStart DateDuration
A $ 3002018/07/315
B $ 5002018/09/303
C $ 2502018/06/308

 

The problem I have is to show this recurring over the length of time based on the start date and adding the duration in months to the data. 

The end result I want is something similar to this

2018-06-29 17_10_54-Window.jpg

 

Without having to manipulate the data to look like this every month

DealDateAmount
DEAL A2018/07/31 R  350 000.00
DEAL A2018/08/31 R  350 000.00
DEAL A2018/09/30 R  350 000.00
DEAL A2018/10/31 R  350 000.00
DEAL A2018/11/30 R  350 000.00
DEAL B2018/08/31 R  500 000.00
DEAL B2018/09/30 R  500 000.00
DEAL B2018/10/31 R  500 000.00
DEAL B2018/11/30 R  500 000.00
DEAL B2018/12/31 R  500 000.00
DEAL B2019/01/31 R  500 000.00
DEAL B2019/02/28 R  500 000.00
DEAL B2019/03/31 R  500 000.00

 

Any advice on how to do this dynamically would be appreciated.

5 REPLIES 5
Anonymous
Not applicable

Could you please explain how did you derive Table 2 from Table 1 ?

 

Thanks

Raj

Hi Raj,

 

The two are not related at all. I am just showing an example in Table 2 that would be a typical layout in a DB to get a visualization in place.

 

The Power BI representation is however derived from the data in table two.

Anonymous
Not applicable

Could you please post the second table coresponding data for Table 1( Preferabaly in copy/pastabale format)? To answer your qn, this is important to understand how your data to be interpreted.

 

Thanks

Raj

Hi Raj,

 

Please find below. 

 

The issue is POWER BI is reading off a CRM DB that has the values in single rows like my TABLE 1. I need to know is there any DAX type formula I can use in POWER BI that can give me the below POWER BI result effectively, without having to manipulate the data the whole time to look like my excel sheet attached, cause once it looks like the excel sheet attached its no issue in displaying it, but its impractical to do this the whole time to dynamic data that can change.

 

 

Deal IDAmountStart DateDuration
A $      300.002018/07/315
A $      300.002018/08/315
A $      300.002018/09/305
A $      300.002018/10/315
A $      300.002018/11/305
B $      500.002018/09/303
B $      500.002018/10/313
B $      500.002018/11/303
C $      250.002018/06/308
C $      250.002018/07/318
C $      250.002018/08/318
C $      250.002018/09/308
C $      250.002018/10/318
C $      250.002018/11/308
C $      250.002018/12/318
C $      250.002019/01/318

 

2018-06-29 19_35_34-Window.png

 

Appreciate the guidance.

Anonymous
Not applicable

Hi @Mario_Engel

 

Pls refer this post which has similar requirement.

https://community.powerbi.com/t5/Desktop/loop-Statement-to-DAX/td-p/346048

 

Thanks

Raj

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.