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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dcg38524
Helper III
Helper III

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 @dcg38524,

10-03-_2020_22-08-46.png

 Regards FrankAT

 

 

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
Community Champion

Hi @dcg38524,

10-03-_2020_22-08-46.png

 Regards FrankAT

 

 

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

 

Best regards,

Don

 

az38
Community Champion
Community Champion

Hi @dcg38524 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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