cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors