Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I am trying to create a new measure using DAX that will indicate the number of contracts that have a maximum of 10000$ in sales, per example. Can I do it just by filtering the sales amount or the number of contracts value?
thank you
Solved! Go to Solution.
Hi @Anonymous
You can try this, create the measures
Measure = IF(MIN('Table'[sales])>=10000,1)count = CALCULATE(DISTINCTCOUNT('Table'[contract]),FILTER(ALL('Table'),[Measure]=1))
result
[count] returns 3, containing contract2, contract3, contract5
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You can try this, create the measures
Measure = IF(MIN('Table'[sales])>=10000,1)count = CALCULATE(DISTINCTCOUNT('Table'[contract]),FILTER(ALL('Table'),[Measure]=1))
result
[count] returns 3, containing contract2, contract3, contract5
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
You don't need a measure for that. Use the built in filter functions in the Power BI report.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.