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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Jsummers
Helper I
Helper I

Sumif between 2 numbers

Hi All

I am trying to create a measure that shows me overdue invoices between 0-30 day, 31-60 etc. I can not create calculated columns (which I am used to), so having to create measures. I have a measure for the days overdue:

 

Days = SUMX(INVOICES,DATEDIFF(INVOICES[INVOICE_DUE_DATE],TODAY(),DAY))

 

I now want to create a card that shows that total owing for 0-30 days.

 

I have managed to create a measure for a specific day overdue., in this case 9 days, but how can I do between 0-30 days?

 

0-30 = SUMX(FILTER(INVOICES,INVOICES[Days]=9),INVOICES[REM_BALANCE])

 

I have exhausted google!

Thanks

1 ACCEPTED SOLUTION
Jsummers
Helper I
Helper I

I have found the solution:

0-30 = SUMX(FILTER(INVOICES,INVOICES[Days]>=0 && INVOICES[Days]<=30),INVOICES[REM_BALANCE])

View solution in original post

1 REPLY 1
Jsummers
Helper I
Helper I

I have found the solution:

0-30 = SUMX(FILTER(INVOICES,INVOICES[Days]>=0 && INVOICES[Days]<=30),INVOICES[REM_BALANCE])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.