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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

UPDATE ROW

I have Employee No, Component  and Pay, I have problem with ESB calulation. formula for ESB calulation is (basic *12/365)*21/365. Can any budy help me i am new in Power BI

(5000*12/365)*21/365 = 287.67

(7000*12/365)*21/365 = 402.74

 

EMP NOCOMPONENTPAY
EM0001BASIC5000
EM0001TRANSPORT1000
EM0001HRA3000
EM0001ESB 
EM0002BASIC7000
EM0002TRANSPORT1000
EM0002HRA3000
EM0002ESB 

 

After calulation,

 

EMP NOCOMPONENTPAY
EM0001BASIC5000
EM0001TRANSPORT1000
EM0001HRA3000
EM0001ESB287.67
EM0002BASIC7000
EM0002TRANSPORT1000
EM0002HRA3000
EM0002ESB402.74
2 ACCEPTED SOLUTIONS

@sohailstsindia

 

Ok I got it

 

5000*21/365 = 287.67 Smiley Tongue

 

So you can adjust the formula above

 

Revised Pay =
IF (
    TableName[COMPONENT] = "ESB",
    VAR BasicSalary =
        CALCULATE (
            SUM ( TableName[PAY] ),
            FILTER (
                ALLEXCEPT ( TableName, TableName[EMP NO] ),
                TableName[COMPONENT] = "BASIC"
            )
        )
    RETURN
        BasicSalary * 21
            / 365,
    TableName[PAY]
)

 

So you get

 

3002.png

 

View solution in original post

Thank you very much Zubair for your reply, its work perfactly. Jazak Allah Khairan.

View solution in original post

6 REPLIES 6
Zubair_Muhammad
Community Champion
Community Champion

@sohailstsindia

 

(5000*12/365)*21/365 = 9.46  Smiley Surprised

 

How did you compute 287.67?

 

 

@sohailstsindia

 

Anyways, you can add a new Calculated Column

 

 

Revised Pay =
IF (
    TableName[COMPONENT] = "ESB",
    VAR BasicSalary =
        CALCULATE (
            SUM ( TableName[PAY] ),
            FILTER (
                ALLEXCEPT ( TableName, TableName[EMP NO] ),
                TableName[COMPONENT] = "BASIC"
            )
        )
    RETURN
        ( BasicSalary * 12
            / 365 )
            * ( 21 / 365 ),
    TableName[PAY]
)

@sohailstsindia

 

Ok I got it

 

5000*21/365 = 287.67 Smiley Tongue

 

So you can adjust the formula above

 

Revised Pay =
IF (
    TableName[COMPONENT] = "ESB",
    VAR BasicSalary =
        CALCULATE (
            SUM ( TableName[PAY] ),
            FILTER (
                ALLEXCEPT ( TableName, TableName[EMP NO] ),
                TableName[COMPONENT] = "BASIC"
            )
        )
    RETURN
        BasicSalary * 21
            / 365,
    TableName[PAY]
)

 

So you get

 

3002.png

 

Thank you very much Zubair for your reply, its work perfactly. Jazak Allah Khairan.

I have Employee No, Component  and Pay, I have problem with ESB calulation. formula for ESB calulation is (basic *12/365)*21/365. Can any budy help me i am new in Power BI

(5000*12/365)*21/365 = 287.67

(7000*12/365)*21/365 = 402.74

 

EMP NOCOMPONENTPAY
EM0001BASIC5000
EM0001TRANSPORT1000
EM0001HRA3000
EM0001ESB 
EM0002BASIC7000
EM0002TRANSPORT1000
EM0002HRA3000
EM0002ESB 

 

After calulation,

 

EMP NOCOMPONENTPAY
EM0001BASIC5000
EM0001TRANSPORT1000
EM0001HRA3000
EM0001ESB287.67
EM0002BASIC7000
EM0002TRANSPORT1000
EM0002HRA3000
EM0002ESB402.74

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.