Skip to main content
cancel
Showing results for 
Search instead 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

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors