Forum Discussion
Quote to Sales Conversion Analyses
- 6 years ago
Hi HabibAdil ,
I created a model like this:
Then, I created a meassure:
Q_V = CALCULATE( MAX(Quotes[Quote Version]), FILTER( SO, SO[SO_NO] <> BLANK() ) )Then, I got "Quick loaded outcome wanted":
But for "Not Quick loaded outcome wanted", you can't get the correct result from the model:
So you need to create a new data model, like this:
Then, I created a measure:
Measure = VAR x = CALCULATE( DISTINCTCOUNT('Quotes (2)'[SO_NO]), ALLEXCEPT( 'Quotes (2)', 'Quotes (2)'[Quote No] ), ALL('SO (2)') ) RETURN IF( x = 1 && MAX('Quotes (2)'[Opportunity_GUID]) = MAX('SO (2)'[Opportunity_GUID]) && MAX('Quotes (2)'[Opportunity_GUID]) <> BLANK(), MAX('Quotes (2)'[Quote Version]), BLANK() )Then, added a filter and you could get the result:
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi HabibAdil ,
I created a model like this:
Then, I created a meassure:
Q_V =
CALCULATE(
MAX(Quotes[Quote Version]),
FILTER(
SO,
SO[SO_NO] <> BLANK()
)
)
Then, I got "Quick loaded outcome wanted":
But for "Not Quick loaded outcome wanted", you can't get the correct result from the model:
So you need to create a new data model, like this:
Then, I created a measure:
Measure =
VAR x =
CALCULATE(
DISTINCTCOUNT('Quotes (2)'[SO_NO]),
ALLEXCEPT(
'Quotes (2)',
'Quotes (2)'[Quote No]
),
ALL('SO (2)')
)
RETURN
IF(
x = 1 && MAX('Quotes (2)'[Opportunity_GUID]) = MAX('SO (2)'[Opportunity_GUID]) && MAX('Quotes (2)'[Opportunity_GUID]) <> BLANK(),
MAX('Quotes (2)'[Quote Version]),
BLANK()
)
Then, added a filter and you could get the result:
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.