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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
talbrechtsen
New Member

Quality Source Data

Hi all, 

 

I am new to Power BI, I have built a handful of dashboards that are being used by our executive team. I am having trouble delivering on one report that has been asked of me and would like some help!

 

I have connected to our CRM which pulls in all the information about the deals our company does. Almost every deal has a referral source for how we learned of the client. I want to build a simple visual that will show us those referral sources who have referred us at least three deals (all-time) but that we haven't heard from in the last year. Any good suggestions on how to accomplish this? I have had no issue building monthly, all-time and YTD leaders. Any help would be greatly appreciated! Thanks!

1 REPLY 1
amitchandak
Super User
Super User

@talbrechtsen , You need follow a approch like this

 

Customer Retention Part 5: LTD Vs Period Retention
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retentio...

 

Lost is what you are looking at , Duration can rolling 12 oe before or this year and before

 

example measures

rolling 12 =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = date(Year(_max), month(_max) -12, Day(_max))+1
BLANK())
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

 

LTD =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = Minx(ALLSELECTED('Date'),'Date'[Date])
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

 

LTD before 12 =
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())

var _max = date(Year(_max1), month(_max1) -12, Day(_max1))
var _min = Minx(ALLSELECTED('Date'),'Date'[Date])
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

 

 

YTD =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = eomonth(_max,-1*MONTH(_max))+1
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

 

 

LTD before This year =
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())

var _max = eomonth(_max,-1*MONTH(_max))
var _min = Minx(ALLSELECTED('Date'),'Date'[Date])
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.