This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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.
How should I approach this? I tried few options but its not giving the correct number.
Calculation to calculate the Sales Cycle is below.
Hi, @Anonymous
you want
new measure with distinctcount of opportunity_id
or
something else?
Something like below but the last condition is not working so I want to understand is there anyother way to make this calculation?
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 31 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 50 | |
| 33 | |
| 24 | |
| 24 |