Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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
0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.