Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hey all,
I think that this has an easy solution, but I'm a little rusty with Power BI.
I've been able to isolate dates that I need based on other parameters, which allowed me to establish a CC and OA date per SOW. (SOW, CC and OA are good.)
Now I need to calculate the columns for New CC and New OA. These are just a repeat of the values from CC and OA, but the value fills every row, based on SOW. The general logic is 'for each row in SOW X, look for a date in column CC and populate to all rows in New CC'. Repeat for OA/New OA.
Can anybody point me in the direction of which function I should use? I understand that this is probably also solvable with PowerQuery but for reasons I want to solve it in DAX.
SOW | CC | OA | New CC | New OA |
1111 | 1/30/2021 | 2/3/2021 | ||
1111 | 1/30/2021 | 2/3/2021 | ||
1111 | 1/30/2021 | 1/30/2021 | 2/3/2021 | |
1111 | 1/30/2021 | 2/3/2021 | ||
1111 | 2/3/2021 | 1/30/2021 | 2/3/2021 | |
2222 | 3/6/2021 | 3/10/2021 | ||
2222 | 3/6/2021 | 3/10/2021 | ||
2222 | 3/6/2021 | 3/6/2021 | 3/10/2021 | |
2222 | 3/10/2021 | 3/6/2021 | 3/10/2021 | |
3333 | 2/18/2021 | 3/20/2021 | ||
3333 | 3/20/2021 | 2/18/2021 | 3/20/2021 | |
3333 | 2/18/2021 | 3/20/2021 | ||
3333 | 2/18/2021 | 2/18/2021 | 3/20/2021 | |
3333 | 2/18/2021 | 3/20/2021 | ||
4444 | 6/1/2021 | 6/15/2021 | ||
4444 | 6/1/2021 | 6/15/2021 | ||
4444 | 6/1/2021 | 6/15/2021 | ||
4444 | 6/1/2021 | 6/1/2021 | 6/15/2021 | |
4444 | 6/15/2021 | 6/1/2021 | 6/15/2021 | |
4444 | 6/1/2021 | 6/15/2021 |
Solved! Go to Solution.
Hi @Anonymous
Create calculated columns:
New CC =
CALCULATE ( MAX ( Table1[CC] ), ALLEXCEPT ( Table1, Table1[SOW] ) )
New OA =
CALCULATE ( MAX ( Table1[OA] ), ALLEXCEPT ( Table1, Table1[SOW] ) )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Anonymous
Create calculated columns:
New CC =
CALCULATE ( MAX ( Table1[CC] ), ALLEXCEPT ( Table1, Table1[SOW] ) )
New OA =
CALCULATE ( MAX ( Table1[OA] ), ALLEXCEPT ( Table1, Table1[SOW] ) )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Thanks millions! This is exactly it!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |