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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JB
Helper II
Helper II

Measure responds inconsistently when added to table

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

JB_0-1651068296371.png

 

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...

 

7 REPLIES 7
v-chenwuz-msft
Community Support
Community Support

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.

tamerj1
Super User
Super User

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.