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
sclencioco
Helper I
Helper I

IF Then Else function applicable?

Good morning.

 

Can someone help me on constructin DAX formula for my reporting.

 

I have (1)Average Ticket Score and (2)Average CSAT Score

 

I have to compute for the Overall score based on this formula: OV Score = ([Average Score] * 0.8) + ([Average CSAT] * 0.2).

 

csat.JPG

 

 

Scenario: If there are no Average CSAT score, it should reflect the Actual Ticket Score value on OVR Score.

 

csat2.JPG

 

Hoping for anyone's assistance. Thank you.

 

 

 

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @sclencioco

 

You could create a new measure, which will look for a BLANK value, and if BLANK is TRUE then RESULT 1 else RESULT 2

 

Here is an example you could use below.

 

New Measure = IF(ISBLANK([Average Score]),[Actual Ticket Score],([Average Score] * 0.8) + ([Average CSAT] * 0.2))




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

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @sclencioco

 

You could create a new measure, which will look for a BLANK value, and if BLANK is TRUE then RESULT 1 else RESULT 2

 

Here is an example you could use below.

 

New Measure = IF(ISBLANK([Average Score]),[Actual Ticket Score],([Average Score] * 0.8) + ([Average CSAT] * 0.2))




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

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ

 

Thank you for your assistance. I was able to use the formula and appreciate the result.

 

 

Hi @sclencioco

 

Happy to help and solve your issue.





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

Proud to be a Super User!







Power BI Blog

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.