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
Pandadev
Post Prodigy
Post Prodigy

How can I add multiple if statements based on the month of a date

I have a database with Q1,Q2,Q3,Q4 results

I need a formula to do something like this

If month <=3 Then use  this formula - if (ISNUMBER([21 Rev USD_Q4]) && ISNUMBER([22 Rev USD_Q1]) , [21 Rev USD_Q4]+[22 Rev USD_Q1],BLANK()))

 

if month >3 & <12 Then use this formula - if (ISNUMBER([22 Rev USD_Q2]) && ISNUMBER([22 Rev USD_Q3]) , [22 Rev USD_Q2]+[22 Rev USD_Q3],BLANK()))

 

else

 

if (ISNUMBER([22 Rev USD_Q1]) && ISNUMBER([22 Rev USD_Q2]) , [22 Rev USD_Q1]+[22 Rev USD_Q2],BLANK()))

 

1 REPLY 1
amitchandak
Super User
Super User

@Pandadev , what are you trying to achieve here?

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

 

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.