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
Anonymous
Not applicable

Segmentation

Hello everyone,

Someone could help me?

I have a measure that calculates my churn rate:

Churn_Tx de Queda = DIVIDE([Churn_Caiu],[Churn_Solicitado])

And I would like to calculate this rate within an array that has the Fee and Lifetime segment.

kfreitass_0-1652414829828.png

I'm trying the following measure, but it's not working:

Churn por Segmento =


VAR vLimInfFee = MIN('SegmentaçãoFee'[Inf])
VAR vLimSupFee = MAX('SegmentaçãoFee'[Sup])
VAR vLimInfLT = MIN('SegmentaçãoLifetime'[Inf])
VAR vLimSupLT = MAX('SegmentaçãoLifetime'[Sup])


RETURN

CALCULATE( [Churn_Tx de Queda],
FILTER(
VALUES('fRelatório_Churn'[Card_id]),
VAR vFee = [Faturamento]
VAR vLT = [Total Lifetime]
RETURN
vFee >= vLimInfLT && vFee < vLimSupLT &&
vLT >= vLimInfFee && vLT < vLimSupFee
)
)

 


I would like to get a result like the one in the figure

kfreitass_3-1652415383089.png

 

How can I do it?

thank you
 
Karina
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , refer if my video and blog can help

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , refer if my video and blog can help

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

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.