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
Anonymous
Not applicable

date range issue

I've a data model like the screenshot

 

 

jaweher89_0-1652635985675.png

here're the relationships between tables

jaweher89_1-1652636020003.png

 

I try to calculate count application by next_processing_date

 

Anta = calculate( sum(proposals[CountApplication]) , USERELATIONSHIP( proposals[next_processing_date] , DimDate[Date] ),FILTER(proposals, proposals[next_processing_date] >= 'Report Measures'[StartDate]&&proposals[next_processing_date] <= 'Report Measures'[endDate]))

 

But it returns always nothing

jaweher89_2-1652636107658.png

 

I analyze data it seems the issue related to the expresion of measure, how to correct it

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

I think in your formula, the [created_date] column filter is also applied, resulting in a blank result. Please try using the following formula.

 

Anta =
CALCULATE (
    SUM ( proposals[CountApplication] ),
    USERELATIONSHIP ( proposals[next_processing_date], DimDate[Date] ),
    FILTER ( DimDate, DimDate[Date] >= [StartDate] && DimDate[Date] <= [endDate] )
)

vkkfmsft_0-1652838843335.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

I think in your formula, the [created_date] column filter is also applied, resulting in a blank result. Please try using the following formula.

 

Anta =
CALCULATE (
    SUM ( proposals[CountApplication] ),
    USERELATIONSHIP ( proposals[next_processing_date], DimDate[Date] ),
    FILTER ( DimDate, DimDate[Date] >= [StartDate] && DimDate[Date] <= [endDate] )
)

vkkfmsft_0-1652838843335.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

speedramps
Super User
Super User

Your screen shot hides Report Measures'[StartDate] and Report Measures[endDate].

Are they field or measure. Do they all have a date data type?

 

Try debug dmall section of your measure one at a time ... for example ....  😁😁😁

 

Debug 1=
calculate(

sum(proposals[CountApplication]) ,

USERELATIONSHIP( proposals[next_processing_date] , DimDate[Date] )
)

 

 

Debug 2=
COUNTROW(

FILTER(proposals,

proposals[next_processing_date] >= 'Report Measures'[StartDate] &&

proposals[next_processing_date] <= 'Report Measures'[endDate])
)

 

 

Anonymous
Not applicable

Both expressions return values,

Anonymous
Not applicable

when I switch active/inactive relationship betrween proposal and date, it returns correctly results

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.

Top Solution Authors