Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone.
I have a table with data of procedures carried out, such as the following:
| Codigo_Obra | Through | Estado_Aprob | Total Term | Meets deadline |
| 2609 | 15401 | APPROVED | 42 | Defeated |
| 2273 | 15402 | IN PROCESS | 20 | OK |
| 2272 | 15403 | APPROVED | 79 | Defeated |
| 2008 | 15404 | APPROVED | 79 | Defeated |
| 2327 | 15405 | APPROVED | 127 | Defeated |
| 2582 | 15406 | IN PROCESS | 146 | Defeated |
| 2445 | 15407 | APPROVED | 28 | OK |
| 2327 | 15408 | APPROVED | 38 | Defeated |
| 2327 | 15409 | IN PROCESS | 40 | Defeated |
I need to post the following procedures:
For which I use for example the following formula:
Solved! Go to Solution.
Try something like below for average with multiple conditions.
Dias_AprobOK =
CALCULATE (
AVERAGE ( Data[Total Term] ),
Data[Estado_Aprob] = "APPROVED",
Data[Meets deadline] = "OK"
)
Or
Dias_AprobOK =
AVERAGEX (
FILTER ( Data, Data[Estado_Aprob] = "APPROVED" && Data[Meets Deadline] = "ok" ),
Data[Total Term]
)
If you want a blank value to appear like a zero, you can add +0 at the end of your formula. Something like
Dias_AprobOK =
AVERAGEX (
FILTER ( Data, Data[Estado_Aprob] = "APPROVED" && Data[Meets Deadline] = "ok" ),
Data[Total Term]
) + 0
You can use && to connect multiple filtering conditions. See DAX syntax.
Let me know if you have any questions.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
Try something like below for average with multiple conditions.
Dias_AprobOK =
CALCULATE (
AVERAGE ( Data[Total Term] ),
Data[Estado_Aprob] = "APPROVED",
Data[Meets deadline] = "OK"
)
Or
Dias_AprobOK =
AVERAGEX (
FILTER ( Data, Data[Estado_Aprob] = "APPROVED" && Data[Meets Deadline] = "ok" ),
Data[Total Term]
)
If you want a blank value to appear like a zero, you can add +0 at the end of your formula. Something like
Dias_AprobOK =
AVERAGEX (
FILTER ( Data, Data[Estado_Aprob] = "APPROVED" && Data[Meets Deadline] = "ok" ),
Data[Total Term]
) + 0
You can use && to connect multiple filtering conditions. See DAX syntax.
Let me know if you have any questions.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
Sorry for the delay in responding, I was solving other issues.
Thank you very much for the solution, I was able to try the 3 formulas and they work perfectly.
Thanks again
Shortly I will write new doubts
I add to the above that also when I have no data the word white appears and I would like it to look like a zero
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 44 | |
| 41 | |
| 36 | |
| 21 |
| User | Count |
|---|---|
| 175 | |
| 119 | |
| 106 | |
| 77 | |
| 50 |