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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Measure Definition

Hi All,

I have created the below measure to calculate a metric but want to add a condition to the measure i.e distinct opportunity id count.

 

Basically I want to calculate my sales cycle where the opportunity count is distinct.

I have a column in my dataset having Opportunity ID.

Himanshu_1306_0-1699545583268.png

 

 

How should I approach this? I tried few options but its not giving the correct number.

 

Calculation to calculate the Sales Cycle is below.

P_Sales Cycle = CALCULATE(AVERAGE(VW_F_PRODUCT_ACV[SALES_CYCLE]),VW_F_PRODUCT_ACV[PRODUCT_ACV] <> 0 && VW_F_PRODUCT_ACV[CLOSED_ACV_COUNT] = 1)
4 REPLIES 4
Dangar332
Super User
Super User

Hi, @Anonymous 

 

you want

 new measure with distinctcount of opportunity_id
or
something else?

Anonymous
Not applicable

Something like below but the last condition is not working so I want to understand is there anyother way to make this calculation?

Himanshu_1306_0-1699547424710.png

 

Anonymous
Not applicable

I want to show the Sales Cycle number only just want to add a condition that what ever I'm calculating is being calculated on DISTINCTCOUNT of Opportunity IDs.

 

The above DAX is correct, I just want to add a condition to it that it doesn't pick duplicate IDs

hi, @Anonymous 

 

that's not a condition 
if you want to it as a condition then you have to compare with like (i.e >2, =0, <5) or something else
so clarify your problem

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.