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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Angry_Grisho
Frequent Visitor

Dividing two values based on a condition

Hello all,

 

I think this is fairly simple but I don't know why I can't get it to work.

 

Angry_Grisho_0-1711638048413.png

 

Currently using PowerBI and I want to calculate the Budget fulflillment % (Cumplimiento mes columm), this is calculated dividing the current sales for the month (Avance Mes) between the budget for the month (Presupuesto mes) and then the results have to be distributed between sellers (catman).

 

This is the formula I have been working on:

 

Cumplimiento Mes = DIVIDE([Venta_Bruta],CALCULATE([Presupuesto Mes],all(BI_MAESTROART[CatMan])))
 
The problem here is the ALL function wich gets all the Budgets for the CATMAN instead of the current month wich is selected.
 
Can anybody help me here and direct me to the correct function?
 
Thanks in advance.

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Angry_Grisho 

 

Please try the following Dax:

Cumplimiento Mes = 
DIVIDE(
    [Venta_Bruta],
    CALCULATE(
        [Presupuesto Mes],
        ALLEXCEPT(BI_MAESTROART, BI_MAESTROART[MonthColumn])  // Replace MonthColumn with your actual month column name
    )
)

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello thanks for your answer and sorry for the delay.

 

Based on your suggestion I tried the following:

 

Cumplimiento Mes =
DIVIDE([Venta_Bruta],
CALCULATE(
    [Presupuesto Mes],
    ALLEXCEPT(BI_VENTAS_dic23, BI_VENTAS_dic23[Fecha].[Mes])
 
But I have the same results where the fulfillment % for each CATMAN is not callculated correctly, only the total.
 
Angry_Grisho_0-1712072505186.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.