Forum Discussion

rathimd's avatar
rathimd
Frequent Visitor
3 years ago

Calculated column else condition not working

Hi All,

 

Creating a column using below dax where in I am passing measure in else condition

Mark-up=

IF(

                 RELATED(

                     'Employees'[Rank Code])

                     = 2700

                      &&

                       RELATED(Employees[Salary($)])<50,

                     SUMX(Employees,Employees[Salary($)]

                         )

                         /

                         1.15,

                             DIVIDE(

                             (

                                 related(

                                     Employees[Salary($)]

                                     )

                                      *

                                      [STD Hrs (%)]

                                      ),[Total Charge Hours],0)

                         )))

 

Below are the measures which I am passing 

STD Hrs (%) = DIVIDE(CALCULATE(SUM(Utilization[STD_HRS]), FILTER(Employees, Employees[Department] <> "ADM" && Employees[EMPL_UNO] <> 585)) , 1957.50)

 

Total Charge Hours =

 CALCULATE(SUM('Time & Billing'[Prod_TIME_HRS]), FILTER(Matters, Matters[MATTER_UNO] <> 138321), FILTER(Employees, Employees[Office] <> "WHL" && Employees[Office] <> "FIRM"))

 

amitchandak

3 Replies