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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rathimd
Frequent Visitor

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 3
v-luwang-msft
Community Support
Community Support

Hi  @rathimd ,

Please provide sanitized sample data that fully covers your issue.


Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

Best Regards

Lucien

rathimd
Frequent Visitor

Please provide sample non-confidential data or a link to a non-confidential PBIX file and a depiction of the expected outcome





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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