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.
Hi
I got a table that looks like this:
My goal is to add a new column called NEWDIST where the DIST value is used unless there are rows with same ID. In that case it should use the DIST value of the of the ID with a blank REF. For the table here the result should look like:
I added the COUNT column to with find the duplicates in ID and tried to do an IF statement in a calculated column:
Solved! Go to Solution.
Hi,
I am not sure if the whole possible situations are considered, but seeing the sample provided above, I tried to create a calcualted column like below.
Please check the attached pbix file and the below picture.
New DIST CC =
IF (
Data[Ref] = BLANK (),
Data[DIST],
MAXX (
FILTER ( Data, Data[ID] = EARLIER ( Data[ID] ) && Data[Ref] = BLANK () ),
Data[DIST]
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure if the whole possible situations are considered, but seeing the sample provided above, I tried to create a calcualted column like below.
Please check the attached pbix file and the below picture.
New DIST CC =
IF (
Data[Ref] = BLANK (),
Data[DIST],
MAXX (
FILTER ( Data, Data[ID] = EARLIER ( Data[ID] ) && Data[Ref] = BLANK () ),
Data[DIST]
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thanks a lot Jihwan_Kim! It solved my problem 🙂
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 |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |