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.
I am receiving an error on trying to create an IF statement:
Hi, @appsac1
You can try the following methods.
Resoultion Time Status =
IF(
[Granulated] = "OPEN" , "OPEN",
IF(
VALUE([Granulated]) <=1, "24 hours",
IF(
VALUE([Granulated])<=2, "48 hours",
IF(
VALUE([Granulated])<=3, "72 hours",
IF(
VALUE([Granulated]) <=4, "96 hours",
">5 days")))))
Is this the output you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The issue is with my Granulated measure not working, because of which the results for Resolution time status shows just as 24 hours and Open.
Below is the measure that I created for Granulated:
I don't have an option to upload my pbix file on the forum, I am sharing the workspace link
https://app.powerbi.com/groups/me/reports/080c3ce8-6d27-4120-8721-e6824f854b43/ReportSection
I fixed this temporarily by replacing open in the Granulated formulae by 0
Old - Granulated = IF(ISBLANK('April Tickets'[Resolved time].[Date]),FORMAT( "open" , ([Resolved time].[Date] - [Created time].[Date])*1.))
New -
we can only have one type for one column. So we can't have text which is Open and number which are 1,2,3,4.
may be you can try this:
Proud to be a Super User!
Thank you so much it worked, could you explain the logic behind adding [Granulated] *1?
@Anonymous
did that to transfer text to number and then we can do the comparation.
Proud to be a Super User!
I tried adding it to the table visual, but it only gives me two column fields "open" and "24 hours" as below:
@Anonymous
could you pls provide the sample data?
Proud to be a Super User!
I am unable to upload the file, but below is the workspace link:
https://app.powerbi.com/groups/me/reports/080c3ce8-6d27-4120-8721-e6824f854b43/ReportSection
@Anonymous
I can't open the report. you can provide some dummy data or just a part of your real data and paste it in the reply.
Proud to be a Super User!
Sure, below is the measure code
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |