Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey guys,
I'm new to Power BI. I'm writing MRR analysis. Completed count of churned customer, new customer and retained customer using following measures:
CustCountChurned = - sumx(VALUES(Cust_lookup[Cust#]), if(not(ISBLANK('GL'[RevLastMTD])) && ISBLANK('GL'[RevMTD]) ,1,BLANK()))
CustCountNew = sumx(VALUES(Cust_lookup[Cust#]), if(ISBLANK('GL'[RevLastMTD]) && not(ISBLANK('GL'[RevMTD])) ,1,BLANK()))
CustCountRetained = sumx(values(Cust_lookup[Cust#]),if(not(ISBLANK('GL'[RevLastMTD])) && not(ISBLANK('GL'[RevMTD])) , 1,BLANK()))
Datasets look like this:
Need your help on calculate the revenue of churned customer, new customer and retained customer with following definitions:
I would very appreciation your help 🙂
p.s. I have read post on similar topics but can't find solutions. I tried to use the following measure to calculate revenue of customer churned but failed.
RevChurned =
VAR ChurnedCustomers =
CALCULATETABLE(
VALUES(Cust_lookup[Cust#]),
ISBLANK('GL'[RevMTD]) && NOT(ISBLANK('GL'[RevLastMTD]))
)
RETURN
CALCULATE(
SUM(Revenue[GLAmtAdj.]),
Cust_lookup[Cust#] IN ChurnedCustomers
)Hi @Hailey_Hung ,
Can you provide your sample data and expected results?
Best regards,
Community Support Team_ Scott Chang
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |