The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
61 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
179 | |
87 | |
70 | |
48 | |
45 |