Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
In my report, I have a date filter. With this I select one date, for example Dec. 31, 2023.
My source data is structured as follows:
ID | Startdate | Untildate | Value |
1 | Nov. 1, 2023 | Nov. 2, 2023 | 40 |
1 | Nov. 2, 2023 | Nov. 3, 2023 | 50 |
1 | Nov. 3, 2023 | Nov. 4, 2023 | 60 |
1 | Feb. 1, 2024 | Feb. 2, 2024 | 80 |
2 | Nov. 2, 2023 | Nov. 3, 2023 | 50 |
2 | Nov. 3, 2023 | Nov. 4, 2023 | 40 |
3 | Nov. 13, 2023 | Nov. 14, 2023 | 50 |
3 | Nov. 14, 2023 | Nov. 15, 2023 | 60 |
Power BI should give me the sum of all the Values where the date in the Untildate column is largest (per ID) under the selected date. So in this example, 60+40+60 = 160.
ID | Startdate | Untildate | Value |
1 | Nov. 1, 2023 | Nov. 2, 2023 | 40 |
1 | Nov. 2, 2023 | Nov. 3, 2023 | 50 |
1 | Nov. 3, 2023 | Nov. 4, 2023 | 60 |
1 | Feb. 1, 2024 | Feb. 2, 2024 | 80 |
2 | Nov. 2, 2023 | Nov. 3, 2023 | 50 |
2 | Nov. 3, 2023 | Nov. 4, 2023 | 40 |
3 | Nov. 13, 2023 | Nov. 14, 2023 | 50 |
3 | Nov. 14, 2023 | Nov. 15, 2023 | 60 |
Is this possible?
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
@IrisW , Create a measure to find the largest Untildate per ID that is under the selected date.
Create another measure to sum the values corresponding to these largest Untildate values.
DAX
Max_Untildate_Under_Selected =
CALCULATE(
MAX('Table'[Untildate]),
FILTER(
'Table',
'Table'[Untildate] <= SELECTEDVALUE('Date'[Date])
)
)
Sum_Values_Largest_Untildate =
SUMX(
SUMMARIZE(
'Table',
'Table'[ID],
"Max_Untildate", [Max_Untildate_Under_Selected]
),
CALCULATE(
SUM('Table'[Value]),
'Table'[Untildate] = [Max_Untildate]
)
)
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
13 | |
13 | |
12 | |
8 | |
7 |
User | Count |
---|---|
18 | |
14 | |
11 | |
11 | |
9 |