Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

PowerBI Data

I have a data for incidents and for the Critical Incident I have data for the next months Jan, Feb, Mar, Apr but for May, Jun, Jul and Agu I don't have any register for Critical Incident, How I can complete those month May, Jun, Jul, Agu and other months with (0)?

 

I appreciate your help

6 REPLIES 6
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

 

How would you like to calculate the average for a month with no Critical Incident in that month?
Make the average 0? Make the average equal to the last month with an Critical Incident? Divide the sum of Critical Incident by the total number of months?
What is your formula for calculating the average? Can you please elaborate on what you are trying to achieve or post sample data and expected result so it is clear on what needs to be implemented?

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello Thank you very mucho for your post

 

for the calculation of the Average I use those Mesures:

1B-ACUM-PROM =
CALCULATE(
DIVIDE([1B-Acumulado],COUNTROWS(VALUES(Cervello[Fecha de resolución del ticket Mes]))),
FILTER(
ALLSELECTED(Cervello),
Cervello[Fecha de resolución del ticket Mes] <= MAX(Cervello[Fecha de resolución del ticket Mes])
)
)
 
1B-Acumulado =
CALCULATE(
SUMX(VALUES(Cervello[Fecha de resolución del ticket Mes]),[1A-SUMA-PROM]),
FILTER(
ALLSELECTED(Cervello),
Cervello[Fecha de resolución del ticket Mes] <= MAX(Cervello[Fecha de resolución del ticket Mes])
 
1A-SUMA-PROM =
VAR X = DIVIDE(AVERAGE(Cervello[TTTRWH]),COUNTROWS(VALUES(Cervello[Fecha de resolución del ticket Mes])))
Return
SUMX(VALUES(Cervello[Fecha de resolución del ticket Mes]),x)
 
 
)
)
In the next Image you will see the 3 mesures in the table, is important that you know in the table is filtered by Year, and Incident Priority, so for the month JAN, FEB, MAR, APR it has register for Incidente with Critical Incidente but for the next monts like JUN, JUL and AGU in the data base don't register any Critical Incident but the average must be calculated but if don't have any data don't calculate de Average.
 
jrromero_0-1629218169099.png

 

mussaenda
Super User
Super User

Hi @Anonymous ,

 

Do you have a date table?

Anonymous
Not applicable

No I don't

Tahreem24
Super User
Super User

@Anonymous , I believe you need to create New Calendar table using below DAX:

New Calendat Table =
VAR myDate = Min(TableName[DateColumn])
RETURN CALENDAR(myDate,DATE(YEAR(myDate),12,31)

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Thank you verymuch in this, so after that what is the next step, I mean that i need to calculate the time average of resolution of the critical incidents, in the moment i have this

 

jrromero_0-1628695799483.png

If you see the image I can calculate the average until April (see orange line) but I can't calculate the average for the next nonths because there are not Critical Incident, but for my knowlage I must calculate the average for the rest of the months.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.