Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table with a list of records that were associated with multiple people. Each person can record what they did to the record (Disposition1 - 5). I'm trying to create a calculated column to store a single value that is not equal to a certain value. For instance,
Hi cstanley1543,
First of all, I would re-write your calculated column as:
FinalDisp =
SWITCH (
TRUE(),
MV_Incident[Disposition1] = "BU", MV_Incident[Disposition2],
MV_Incident[Disposition2] = "BU", MV_Incident[Disposition3],
MV_Incident[Disposition3] = "BU", MV_Incident[Disposition4],
MV_Incident[Disposition5]
)
If that doesn't correct the issue, maybe confirm with your data that there are any records where the Disposition1 or Disposition2 columns are not "BU". It could be that it's legitimately not reaching to the later conditions.
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
Proud to be a Super User! | |
Hi Wilson,
Thank you for the break down on the SWITCH function. Unfortunately, it still doesn't get past the first statement and still only uses Disposition2.
cstanley1543,
Like I said, if that doesn't correct the issue, maybe confirm with your data that there are any records where the Disposition1 or Disposition2 columns are not "BU". It could be that it's legitimately not reaching to the later conditions.
If you're still having issues, any chance you could share an anonymized pbix file?
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
Proud to be a Super User! | |
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
67 | |
51 | |
39 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |