cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MSVALE
New Member

Changing Measure Formula when using slicer

Hello guys,

i created a table with 2 rows only called "ChurnType" with "Type" inside that only has "Partner and Customer"

 

This is my measure:

Churn Rate = IF([#Churn] = 0, 0, ([#Churn] + [#Lost]) / ([#Renewable] + [#Lost]))
 
And what i want to do is:
Churn Rate = IF([#Churn] = 0, 0, ([#Churn] + IF(ChurnType[Type] = "Partner", 0, [#Lost])) / ([#Renewable] + IF(ChurnType[Type] = "Partner", 0, [#Lost])))
 
But gives me the error "a single value for column "Type" in table... cannot be determined... column tahat contains many values..."
 
What i want is when i select option in slicer the formula changes because is differente from partner to customer.
 
I would apreciate some help on how to solve this.
Thanks in advance

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.