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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a measure that calculates if an entry falls within a date range and, if it does, returns a 1.
However, when applied to a table it seems to be totally inconsistent. See below - all rows should return a 1
Any suggestions as to what is causing this discrepency would be appreciated.
Thanks
Please note - this is a continuation from an unsolved thread here:
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m...
Hi @JB ,
It is about the filter context.
Can you try just remove the CALCULATE( ... , CROSSFILTER()), just left IF(...)?
If 'Progress Services'[scaff reg / selected start date] is a measure, what does it looks like?
Or you can share some example data if you need more help.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Removing Calculate and CrossFilter returns only 0s.
The measure is CALCULATE(max( [DATE] ), all('Slicer Calendar'))
Hi @JB ,
Please share your pbix file without sensitive data. Not quite sure what the problem is, only by the description of the text.
Hi @JB
would you please create a measure COUNTROWS ( 'Progress Services' ), place it in the table and advise what results you obtain? Thank you
Hi, it just returns empty cells, doesn't produce anything.
As long as you managed to set the relationship to one directional then you need to remove CALCULATE along with the CROSSFILTER part completely.
Unfortunately that only returns 0s
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |