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.
Newbie here. I have a table that has an ApptStatus column. Among others, there are 3 that start with "Cancelled....".
How can I combine\sum these into 1 value called "All Cancelations" so the BarChart only has 1 bar for this instead of 3 separate ones?
Solved! Go to Solution.
Hi,
"Use the Switch young Jedi". Joke aside, create a new column as follows:
New Status = SWITCH(
TRUE(),
Table[ApptStatus] = "Cancelled by Client", "All Cancellations",
Table[ApptStatus] = "Cancelled by Vendor", "All Cancellations",
Table[ApptStatus] = "Cancelled Due To Technical Issues", "All Cancellations",
Table[ApptStatus])
If this answered your question, please mark it as the solution.
I wish I could accept both answers as the solution as both worked great. I also learned a lot about PowerBI with just these 2 responses. I did upvote both answers though.
Ashish's response was concise and simple and 100% functional (thank you!). However, I selected MNedix's response as it too was 100% functional, but seems to be more versatile and flexible for other uses. Also, even though there was a working answer, MNedix offered an additional alternative answer and didn't really have to.
Thank you to the both of you!
Hi,
Write this calculated column formula
Column = if(containsstrng(Data[AppStatus],"Cancelled"),"All cancellations",blank())
Hope this helps.
Hi,
"Use the Switch young Jedi". Joke aside, create a new column as follows:
New Status = SWITCH(
TRUE(),
Table[ApptStatus] = "Cancelled by Client", "All Cancellations",
Table[ApptStatus] = "Cancelled by Vendor", "All Cancellations",
Table[ApptStatus] = "Cancelled Due To Technical Issues", "All Cancellations",
Table[ApptStatus])
If this answered your question, please mark it as the solution.
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 |
---|---|
108 | |
105 | |
87 | |
74 | |
66 |
User | Count |
---|---|
124 | |
113 | |
96 | |
80 | |
72 |