Forum Discussion

sabilahmed's avatar
sabilahmed
Icon for Resolver I rankResolver I
4 years ago
Solved

Complex DAX: Contracted and Uncontracted Revenue - single Row value across multiple months (Help!)

Hello all,

 

HELP ME! 😞

 

I am stuck on a problem that I can't get me head around and need the help of a super Power BI guru.

 

I have an example table below. In my model it is called AgreementAdditions and List:

 

 

Below is the relationship model and I have circled where the AgreementAdditions and List table is:

 

The Goal is i'm tryiong to acheive the below results in a table visual format (but I need it to work in other visual formats too like bar chart or something like that):

 

 

I have created the above 2 tables as an example, so as you can see what I want is the Revenue (Ext Price) in the AgreementAdditons and List table to be spread out across multiple months (depending on the start and end date).

 

If there is no end date then the value should continue as contracted. If there is an end date then the value stops in said month, but in the following month continues as Uncontracted.

 

Also I want there to be dynamic filtering available, so if I select FY22-23 or FY23-24, I will see different results (as per above example).

 

So far I have achived the following:

 

The table viz above is created as follows:

 

 

In the data relationship model you will see a table called: Rev_Type. This is what I use as Rows in the table viz:

 

I have yet to add Pipeline, Contracted and Uncontracted_Weighted (80%) in the above table

 

The TOTAL_RS! in values is a DAX calc:

 

TOTAL_RS1 = SUM(Agreement_Billing_Report[Extended Price]) + CALCULATE(SUM('Invoiced Product & Subscription'[Extended Price]),'Invoiced Product & Subscription'[Income Stream] = "RS1 - Contracts") + SUM(Opportunity[Ext Price])

 

Each component of this calc results in a Row in the table viz (i.e. Agreement, SO).

 

SUM(Opportunity[Ext Price] will result in Pipeline row but this has not yet been populated.

 

I am looking to add more components to the above calc so I can eveventually have Contratced, Uncontraced and Uncontracted_Weighted.

 

If you have a better way of doing this I am open to all solutions 🙂

 

Ypur help will be most appreciated and I am always availablle to give you more details to help you so you can help me 🙂

 

Many, many thanks in advance. And good luck!

 

Kind regards,

Sabil

 

😊

 

 

3 Replies