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.
hi, trying to do a if statement then a count statement to calculate how long customer case items took to close
Currently created a date diff on the difference in days for items between Created Date and Closed Date. Output is in days
then i am forming an if statement to mark items in a new column based on the date ranges
Solved! Go to Solution.
Hi @Anonymous ,
Create a measure as below:
Measure = CALCULATE(COUNTROWS('Escalation'),FILTER(ALL(Escalation),'Escalation'[Column]<=MAX('Escalation'[Column])&&'Escalation'[Priority]=MAX('Escalation'[Priority])))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
@Anonymous , for that you can create whatif parameter and use
measure =
var _par = maxx(allselected(parameter), parameter[parameter])
return
calculate(count(Table[customer]), filter(Table, Table[Days to Close] <=_par))
https://docs.microsoft.com/en-us/power-bi/desktop-what-if
thanks for reply @amitchandak
not sure if whatif will help me table-ise the outputs as per below
couldnt put a table in this reply, getting errors
but essentially need to put the outputs in a table with the below in columns
< 1 day = count of items less than 1 day
< 1 week = Count of items less than 7 days including items in the less than 1 day column
<1 month = Count of items less than 30 days including items in the less than 1 day and less than week column
etc etc
the below is how i want the output where by 65 is actually the sum of 9 + 65
Hi @Anonymous ,
Create a measure as below:
Measure = CALCULATE(COUNTROWS('Escalation'),FILTER(ALL(Escalation),'Escalation'[Column]<=MAX('Escalation'[Column])&&'Escalation'[Priority]=MAX('Escalation'[Priority])))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
thankyou thats perfect
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 |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
107 | |
105 | |
87 | |
61 |