We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
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.
User | Count |
---|---|
60 | |
56 | |
48 | |
38 | |
34 |
User | Count |
---|---|
93 | |
78 | |
66 | |
48 | |
47 |