Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kurt4597
Helper I
Helper I

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

Kurt4597_4-1673885910482.png

 

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)
Kurt4597_2-1673885413148.png

 

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:

Kurt4597_3-1673885849312.png

 

Sample File https://easyupload.io/bmp35x




1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

"Quote Position" is redundant.

CNENFRNL_1-1673907882739.png


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!

View solution in original post

1 REPLY 1
CNENFRNL
Community Champion
Community Champion

"Quote Position" is redundant.

CNENFRNL_1-1673907882739.png


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!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.