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
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.