March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
My formula is to count the number of records over a given period of time divided by a similar figure to get a point in time percentage. No errors with the formula but I don't return any results when I try to use an inactive relationship. Confirmed both fields in the inactive relationship are set up as one to many and both are Date types.
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but try somethinglike below whether it suits your requirement.
Close Rate =
VAR ClosedWon =
COUNTROWS (
FILTER (
ALL ( 'Opportunities' ),
Opportunities[Deal Stage]
IN { "Closed won" }
&& Opportunities[Close Date] <= MAX ( 'Calendar'[Date] )
&& Opportunities[Close Date]
>= MAX ( 'Calendar'[Date] ) - 30
)
)
VAR Closed =
COUNTROWS (
FILTER (
ALL ( 'Opportunities' ),
Opportunities[Deal Stage]
IN { "Closed lost", "Closed won", "Closed – Disqualified (BDR)" }
&& Opportunities[Close Date] <= MAX ( 'Calendar'[Date] )
&& Opportunities[Close Date]
>= MAX ( 'Calendar'[Date] ) - 30
)
)
VAR WinRate =
DIVIDE ( ClosedWon, Closed )
RETURN
WinRate
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure if I understood your question correctly, but try somethinglike below whether it suits your requirement.
Close Rate =
VAR ClosedWon =
COUNTROWS (
FILTER (
ALL ( 'Opportunities' ),
Opportunities[Deal Stage]
IN { "Closed won" }
&& Opportunities[Close Date] <= MAX ( 'Calendar'[Date] )
&& Opportunities[Close Date]
>= MAX ( 'Calendar'[Date] ) - 30
)
)
VAR Closed =
COUNTROWS (
FILTER (
ALL ( 'Opportunities' ),
Opportunities[Deal Stage]
IN { "Closed lost", "Closed won", "Closed – Disqualified (BDR)" }
&& Opportunities[Close Date] <= MAX ( 'Calendar'[Date] )
&& Opportunities[Close Date]
>= MAX ( 'Calendar'[Date] ) - 30
)
)
VAR WinRate =
DIVIDE ( ClosedWon, Closed )
RETURN
WinRate
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thanks! Adding the ALL filter seemed to do the trick
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
26 | |
21 | |
20 | |
14 | |
10 |