Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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 |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |