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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Aron_Moore
Solution Specialist
Solution Specialist

Events in progress help

So I thought I had this solved but it is not working quite right. Used this link.

 

Can anyone tell why the $125k line doesn't fall into the 1/1/2018 bucket? It was opened on 1/2/2018 so should show on week 1/1/2018.

 

I have the two tables, not joined/related, Open Value and Dates. Dates is for weekly bucketing and is a column of Mondays.

 

Measure

Weekly Amount = CALCULATE(SUM('Open Value'[Amount]),
 FILTER('Open Value','Open Value'[Open Date]<=CALCULATE(MAX(Dates[Week of]))),
 FILTER('Open Value','Open Value'[Net Due Date]>=CALCULATE(MIN(Dates[Week of]))))

 

Table of raw

Capture.PNG

Matrix using measure

Capture1.PNG

Thanks!

1 ACCEPTED SOLUTION
Aron_Moore
Solution Specialist
Solution Specialist

Think I figured it out. It is filtering the Open Date week because it's greater than the Week Of/Monday. Artificially padding seems to get it work as expected.

 

Is there a better solution?

 

Weekly Amount = CALCULATE(SUM('Open Value'[Amount]),
 FILTER('Open Value','Open Value'[Open Date]<=CALCULATE(MAX(Dates[Week of])+7)),
 FILTER('Open Value','Open Value'[Net Due Date]>=CALCULATE(MIN(Dates[Week of]))))

 

Capture.PNG

View solution in original post

2 REPLIES 2
Aron_Moore
Solution Specialist
Solution Specialist

Think I figured it out. It is filtering the Open Date week because it's greater than the Week Of/Monday. Artificially padding seems to get it work as expected.

 

Is there a better solution?

 

Weekly Amount = CALCULATE(SUM('Open Value'[Amount]),
 FILTER('Open Value','Open Value'[Open Date]<=CALCULATE(MAX(Dates[Week of])+7)),
 FILTER('Open Value','Open Value'[Net Due Date]>=CALCULATE(MIN(Dates[Week of]))))

 

Capture.PNG

Hi @Aron_Moore,

Yes, you're right. Your solution is brief and clear. Please mark your solution as answer, so more people will get helpful information from here.

Thanks,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.