Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hi, i have created a days grouping based on the values in column "Days to Resolve". For some reason the blank values are still returning as 0-7 Days. Any ideas what i need to add to below measure to return blank values as "Unsolved" in my grouping?
Days to Resolve (Grouping) =
SWITCH (
TRUE (),
JIRA_Data[Days to Resolve] >= 0
&& JIRA_Data[Days to Resolve] <= 7, "0-7 Days",
JIRA_Data[Days to Resolve] > 7
&& JIRA_Data[Days to Resolve] <= 31, "8-31 Days",
JIRA_Data[Days to Resolve] > 31
&& JIRA_Data[Days to Resolve] <= 91, "32-91 Days",
JIRA_Data[Days to Resolve] > 91
&& JIRA_Data[Days to Resolve] <= 182, "92-182 Days",
JIRA_Data[Days to Resolve] > 182
&& JIRA_Data[Days to Resolve] <= 365, "183-365 Days",
">365 Days")
Solved! Go to Solution.
Hi,
Please try the below whether it suits your requirement.
Days to Resolve (Grouping) =
SWITCH (
TRUE (),
JIRA_Data[Days to Resolve] == BLANK (), "Unsolved",
JIRA_Data[Days to Resolve] >= 0
&& JIRA_Data[Days to Resolve] <= 7, "0-7 Days",
JIRA_Data[Days to Resolve] > 7
&& JIRA_Data[Days to Resolve] <= 31, "8-31 Days",
JIRA_Data[Days to Resolve] > 31
&& JIRA_Data[Days to Resolve] <= 91, "32-91 Days",
JIRA_Data[Days to Resolve] > 91
&& JIRA_Data[Days to Resolve] <= 182, "92-182 Days",
JIRA_Data[Days to Resolve] > 182
&& JIRA_Data[Days to Resolve] <= 365, "183-365 Days",
">365 Days"
)
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.
Blank equates to 0, so you need a specific test for it
Days to Resolve (Grouping) =
SWITCH (
TRUE (),
ISBLANK ( JIRA_Data[Days to Resolve] ), "Unsolved",
JIRA_Data[Days to Resolve] >= 0
&& JIRA_Data[Days to Resolve] <= 7, "0-7 Days",
JIRA_Data[Days to Resolve] > 7
&& JIRA_Data[Days to Resolve] <= 31, "8-31 Days",
JIRA_Data[Days to Resolve] > 31
&& JIRA_Data[Days to Resolve] <= 91, "32-91 Days",
JIRA_Data[Days to Resolve] > 91
&& JIRA_Data[Days to Resolve] <= 182, "92-182 Days",
JIRA_Data[Days to Resolve] > 182
&& JIRA_Data[Days to Resolve] <= 365, "183-365 Days",
">365 Days"
)
Blank equates to 0, so you need a specific test for it
Days to Resolve (Grouping) =
SWITCH (
TRUE (),
ISBLANK ( JIRA_Data[Days to Resolve] ), "Unsolved",
JIRA_Data[Days to Resolve] >= 0
&& JIRA_Data[Days to Resolve] <= 7, "0-7 Days",
JIRA_Data[Days to Resolve] > 7
&& JIRA_Data[Days to Resolve] <= 31, "8-31 Days",
JIRA_Data[Days to Resolve] > 31
&& JIRA_Data[Days to Resolve] <= 91, "32-91 Days",
JIRA_Data[Days to Resolve] > 91
&& JIRA_Data[Days to Resolve] <= 182, "92-182 Days",
JIRA_Data[Days to Resolve] > 182
&& JIRA_Data[Days to Resolve] <= 365, "183-365 Days",
">365 Days"
)
Hi,
Please try the below whether it suits your requirement.
Days to Resolve (Grouping) =
SWITCH (
TRUE (),
JIRA_Data[Days to Resolve] == BLANK (), "Unsolved",
JIRA_Data[Days to Resolve] >= 0
&& JIRA_Data[Days to Resolve] <= 7, "0-7 Days",
JIRA_Data[Days to Resolve] > 7
&& JIRA_Data[Days to Resolve] <= 31, "8-31 Days",
JIRA_Data[Days to Resolve] > 31
&& JIRA_Data[Days to Resolve] <= 91, "32-91 Days",
JIRA_Data[Days to Resolve] > 91
&& JIRA_Data[Days to Resolve] <= 182, "92-182 Days",
JIRA_Data[Days to Resolve] > 182
&& JIRA_Data[Days to Resolve] <= 365, "183-365 Days",
">365 Days"
)
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.
User | Count |
---|---|
24 | |
21 | |
19 | |
13 | |
12 |
User | Count |
---|---|
40 | |
28 | |
28 | |
22 | |
20 |