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.
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
Matrix using measure
Thanks!
Solved! Go to Solution.
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]))))
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]))))
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |