cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Multiple Formulas in one Statement

Hi Team,

 I am trying to use multiple statements from Excel and convert to either a dax formula or a calculated column:

=IF(AB2="YES",SUM(X2/AC2),"0.00") 

the Columns are all within the same table.

I tried a calculate with and If and Sum.... Iferror with a Sumx ..... If , sum, filter..... No luck

Your advice and expertise, greatly appreciated

🙂

1 ACCEPTED SOLUTION
Super User III
Super User III

Hi,

You have not specified whether you need a calculated column or a measure.  If you need a calculated column formula, then try this

=if(Data[Reply]="Yes",divide(Data[column1],Data[column2]),0)

Data[Reply] is column AB

Data[column1] is X2

Data[column2] is AC2

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi,

You have not specified whether you need a calculated column or a measure.  If you need a calculated column formula, then try this

=if(Data[Reply]="Yes",divide(Data[column1],Data[column2]),0)

Data[Reply] is column AB

Data[column1] is X2

Data[column2] is AC2

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

@Ashish_Mathur  THANK YOU

Lesson learnt- dont overthink the formula- Worked perfectly!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors