Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
version | onboarding plan | app id | No of Feeds | OUTPUT | Modified | |
4 | A_0002 | XYZ | 2 | 12 | 2/1/2024 | |
3 | A_0002 | XYZ | 2 | 10/1/2023 | ||
2 | A_0003 | XYZ | 20 | 3/5/2024 | ||
1 | A_0003 | XYZ | 10 | 12 | 2/1/2024 |
Solved! Go to Solution.
Hi @Anonymous
You seem to want to calculate the "feed" sum based on the maximum modification date that is less than the modification date of the current version.
For your question, here is the method I provided:
Create measures.
Query the maximum modification date that is less than the modification date of the current version.
max modified date = var _max = CALCULATE(MAX('Table'[Modified]), FILTER(ALL('Table'), 'Table'[onboarding plan] = MAX('Table'[onboarding plan])))
RETURN CALCULATE(
MAX('Table'[Modified]),
FILTER(
ALL('Table'),
'Table'[onboarding plan] = MAX('Table'[onboarding plan])
&&
'Table'[Modified] < _max
))
Calculate the sum.
OUT PUT =
CALCULATE(
SUM('Table'[No of Feeds]),
FILTER(
ALL('Table'),
'Table'[Modified] = [max modified date]
)
)
Here is the result.
If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You seem to want to calculate the "feed" sum based on the maximum modification date that is less than the modification date of the current version.
For your question, here is the method I provided:
Create measures.
Query the maximum modification date that is less than the modification date of the current version.
max modified date = var _max = CALCULATE(MAX('Table'[Modified]), FILTER(ALL('Table'), 'Table'[onboarding plan] = MAX('Table'[onboarding plan])))
RETURN CALCULATE(
MAX('Table'[Modified]),
FILTER(
ALL('Table'),
'Table'[onboarding plan] = MAX('Table'[onboarding plan])
&&
'Table'[Modified] < _max
))
Calculate the sum.
OUT PUT =
CALCULATE(
SUM('Table'[No of Feeds]),
FILTER(
ALL('Table'),
'Table'[Modified] = [max modified date]
)
)
Here is the result.
If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.