cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## How many times each partner appeared in the top 3 more than once

Here is the sample data.
- A customer creates a quote request and is returned with multiple quotes.
- Each Quote Request has a unique ID
- Each Quote has a unique ID

- Every Quote relates to a Quote Request, any given Quote Request has multiple quotes belonging to it

I have created a measure to show how many times each Partner has a quote in the top 3 position. Like so -

Top 3 = CALCULATE(
DISTINCTCOUNT(Quotes[quote request id]),
Quotes[quote position] < 4 )

When added into a table it produces the following - For each partner showing how many times (how many distinct quote request IDs) they had a quote position of greater than 4 (Appeared in the top 3)

I am trying to put together a measure which shows "How many times each partner appeared in the top 3 more than once". Originally I tried to adjust the measure with the idea of...

Top 3 = CALCULATE(
DISTINCTCOUNT(Quotes[quote request id]),
Quotes[quote position] = 1 && Quotes[quote position] = 2 )

However this does not give the intended result. Any suggestions would be much appreciated.

The End result would show:

1 ACCEPTED SOLUTION
Community Champion

"Quote Position" is redundant.

 Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! DAX is simple, but NOT EASY!
Community Champion

"Quote Position" is redundant.

 Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! DAX is simple, but NOT EASY!