Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Need Help with DAX expression - Opportunity Pipeline - Point in Time

Hi

I am new to PowerBI. Stuck and need help!!

 

We have Opportunities pipeline data in the following format

OpportunityGrossBookingStage1DateStage2DateStage3DateCurrentStage
OP110012/15/20192/10/2020 Stage2
OP215012/1/2019  Stage1
OP32002/1/20203/15/20206/1/2020Stage3
OP425011/1/20191/15/20201/20/2020Stage3
OP530012/15/20196/1/2019 Stage2
OP63501/1/20202/1/20203/1/2020Stage3

 

StageDate fields capture the date on which an opportunity entered that stage.

 

I am trying to create DAX expression for stages (stage1, stage2,stage3.. etc), to use on a Matrix  to show which opportunity was in which stage during a time period.

Generate outputs as below based on Month \ Quarter \ Year. When we run for Quarter\year, it should not just aggregate monthly numbers. Instead, identify opportunities that are in that particual stage at least some point in that Quarter and get sum of gross booking 

 

 JanFebMar
Stage1900750650
Stage2700450300

Or

 

 Q1Q2
Stage11350450
Stage2900600

 

Here is the link to the pbix file

https://drive.google.com/file/d/13dHaYfjNFm4xUqbJL9BLDl4xOD-yTR3Z/view?usp=sharing

 

Any help is appreciated

 

Thanks

10 Replies