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.
Hello, guys!
Need some help to create a measure.
Have a table:
date | link_id | area | ppm | publication_date |
17.08.2020 | 124662695 | 5 | 1000 | 07.08.2020 |
17.08.2020 | 127645504 | 50 | 600 | 11.08.2020 |
24.08.2020 | 148543021 | 37 | 500 | 15.08.2020 |
24.08.2020 | 127645504 | 50 | 640 | 20.08.2020 |
31.08.2020 | 148543021 | 37 | 600 | 15.08.2020 |
31.08.2020 | 127645504 | 50 | 800 | 20.08.2020 |
Need to receive the SUM of the latest values PPM for each LINK_ID betweendates (07.08.2020-30.08.2020) by Date.
In this case the right answer is 2 140
Solved! Go to Solution.
@Anonymous - This is sort of Lookup Min/Max - https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434
In your case, maybe:
Measure =
VAR __Table =
ADDCOLUMNS(
SUMMARIZE('Table',[link_id],"__Date",MAX([date])),
"__PPM",MAXX(FILTER(ALL('Table'),[link_id]=EARLIER([link_id]) && [date]=[__Date]),[ppm)
)
RETURN
SUMX(__Table,[__PPM])
@Anonymous - This is sort of Lookup Min/Max - https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434
In your case, maybe:
Measure =
VAR __Table =
ADDCOLUMNS(
SUMMARIZE('Table',[link_id],"__Date",MAX([date])),
"__PPM",MAXX(FILTER(ALL('Table'),[link_id]=EARLIER([link_id]) && [date]=[__Date]),[ppm)
)
RETURN
SUMX(__Table,[__PPM])
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 |
---|---|
106 | |
94 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |