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
Hi guys,
I am having trouble calculating the previous month lost customer revenue.
My model relies on a single way relationship between thr fact table and the time table, so that is not possible to change.
I would like to display the measure "Churn_lost_$" as shown in the picture below.
Thank you very much! 🤙
You can donload the model here:
https://drive.google.com/file/d/1MKFmtBIm1Z-yJ0--FhVRuIrZqWVV166c/view?usp=sharing
up
up
up
Hi @APIR ,
Create measure.
Step1 =
var _column=
SELECTCOLUMNS(
FILTER(ALL('FACT_Orders'),
'FACT_Orders'[Account Name 1]=MAX('Accounts'[Customer])),"Test",'FACT_Orders'[Date])
return
IF(
MAX('TIME_Table'[Date]) in _column,BLANK(),0)
Step2 =
COUNTX(ALL('Accounts'),'Accounts'[Customer])
Step3 =
IF(
HASONEVALUE('Accounts'[Customer]) , [Step1],
IF(
HASONEVALUE('TIME_Table'[Date].[Month]) && [Step2]<>[Accounts Distinct],0,BLANK()))
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Clara,
First of all thank you for your time. Not correct though (yet!)
I've increased the data and the value are incorrect. Here is how I imagine the result:
I've tried many things but I still stuck.
Here is the file with more data:
https://drive.google.com/file/d/1MKFmtBIm1Z-yJ0--FhVRuIrZqWVV166c/view?usp=sharing
up
up
up
up
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |