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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

IF NOT BLANK Calculate Sum

Hello,

I need your help - we have 2x columns "Outage Durations" & "C_Durations" we would like to calculate the Sum of column "C_Durations" 1st if the column/row is not Blank.

 

If somehow "C_Durations" column/row is BLANK then calculate sum of column/row "Outage Durations".

 

Any advice would be greatly appreciated,

Thank you

 

WeekOutage DurationsC_Durations
119221
2401 
36023
4364777
5601 
6120300
77020
81050 
9150 
10490 
11188188
12195 
13360 
14140 
1548 
161801634
17497497
181784 
191160 
2060 
2130442
2221 
23107107
24180 
25487 
2610368
27538538

 

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous,

10-03-_2020_22-08-46.png

 Regards FrankAT

 

 

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
Community Champion

Hi @Anonymous,

10-03-_2020_22-08-46.png

 Regards FrankAT

 

 

Anonymous
Not applicable

Thank you very much, your DAX logic / solution worked perfectly.

 

Best regards,

Don

 

az38
Community Champion
Community Champion

Hi @Anonymous 

if i understand you correct try SUMX()

= CALCULATE(SUMX('Table', IF(ISBLANK([C_Durations]), [Outage Durations], [C_Durations]) ) )

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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