Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi.
I am trying to categorise numerial responses into 3 different categories.
If they answered betweeb 0-1 - I want to categorise that as 0-1 Day Active
If they answered between 2-4 - I want to categorise that as 2-4 Days Active
If they answered between 5-7 - I want to categorise that as 5+ Days Active
See the example of my data set below, the column in bold is what I need.
| Name | Answer | Catergory |
| Mary | 2 | 2-4 Active |
| Joe | 5 | 5+ Active |
Solved! Go to Solution.
@Anonymous in this case you will need to create a calculated column like below in your data
let me know if it works for you. thanks
Proud to be a Super User!
Thank you to you both. This really is a great community!
@Anonymous
Add the column as
Column =
var __v = Table1[Answer] return
SWITCH(
TRUE(),
__v >= 0 && __v <=1 , "0-1 Day Active",
__v >= 2 && __v <=4 , "2-4 Days Active",
__v >= 5, "5 Days Active"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous in this case you will need to create a calculated column like below in your data
let me know if it works for you. thanks
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |