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
gheecalipes25
Helper II
Helper II

how to use the or statement

Hi,

 

i have to format a date but then will need to use the or statement. which means if Time Reported = null, it will show and format Updated Dated.

 

Here's my current formula, but is not actually getting the result i need.

 

If Status = Closed, format date(if time reported), if time reported = null, format the Updated Date instead. 

 

Thanks to those who will provide feedback.

1 ACCEPTED SOLUTION
mlsx4
Super User
Super User

Hi @gheecalipes25 

I don't really understand your formula, but if you need an or you can use the formula OR(Condition1, Condition2) or simply write || between the conditions: condition1 || condition2

 

If this message isn't enough, please try to explain it deeper 

View solution in original post

3 REPLIES 3
gheecalipes25
Helper II
Helper II

Hi, 

 

The current formula i am using is:

 

var_Week Number Closed = FORMAT(WEEKNUM('SMC OUTAGE_FACT'[TIMERESOLVED] || SMC OUTAGE_FACT'[UPDATED] ,2),"00")
 
but i am not getting the result i need. 😞

@gheecalipes25 ,

Can you share some sample data and expected output bit more in detail?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


mlsx4
Super User
Super User

Hi @gheecalipes25 

I don't really understand your formula, but if you need an or you can use the formula OR(Condition1, Condition2) or simply write || between the conditions: condition1 || condition2

 

If this message isn't enough, please try to explain it deeper 

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.