Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I am trying to calculate the number of leads that have a qualification date beyond a specific date and have a certain field marked as yes.
Solved! Go to Solution.
Assume you have date from date calendar as filter, try like
Measure =
var _max =minx(date,date[date])
return
sumx('Leads',IF(AND('Leads' [qualification__date__c] > _max, 'Leads' [SOE] = "Yes"), 1,0))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Assume you have date from date calendar as filter, try like
Measure =
var _max =minx(date,date[date])
return
sumx('Leads',IF(AND('Leads' [qualification__date__c] > _max, 'Leads' [SOE] = "Yes"), 1,0))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
@amitchandak Thank you for the response. I am a little new to PowerBI so can you help me understand your solution a little better? From what I understand you are setting _max as the output for the minx calculation. Can you help me understand how minx works and what i should inputting into it as far as table and column names.
Thanks for the help!
Typically Min or max will not allow expression while doing the calculation. Also when we take some slicer value minx/maxx is a better option.
https://docs.microsoft.com/en-us/dax/minx-function-dax
The idea was that you have slicer , where you have taken a date or range of dates. As it can be range taking mi. Typically in power BI, we suggest to have a date calendar . Assuming that the minx was on date[date]
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |