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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Count Not existing values in last quarter

Hello,

 

I can't compare values over time like i would like.

I have queries to retrieve distinct resellers each month :
Resellers QTD = var _max = maxx(ALLSELECTED(Revenue),Revenue[Period]) return
TOTALQTD(
DISTINCTCOUNT('Partner'[Reseller Ref]),
DATESQTD(Revenue[Period]),
FILTER('Partner','Partner'[Date Validation] <=_max && 'Partner'[Date End] >=_max)
)
Resellers Q-1 = var _max = maxx(ALLSELECTED(Revenue),Revenue[Period]) return
TOTALQTD(
DISTINCTCOUNT('Partner'[Reseller Ref]),
DATEADD(Revenue[Period],-1,QUARTER),
FILTER('Partner','Partner'[Date Validation] <=_max && 'Partner'[Date End] >=_max)
)
...

 

After i use my measures to retrieve diff net value:
Net New QTD = [Resellers QTD]-[Resellers Q-1]
Net New Q-1 = [Resellers Q-1]-[Resellers Q-2]
...

 

Now i would like to retrieve the distinct NEW resellers.
This mean if i have a DISTINCT('Partner'[Reseller Ref]) exists @ QTD but not present in Q-1, i would like to count him.

 

I tried something like this but it seems not working:

Expension Q-1 =
CALCULATE(
[Resellers Q-1],
FILTER('Subscription Partner', [Resellers Q-1] <> [Resellers Q-2])
)

 

Any idea ? I don't want the NET NEW !

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Check these two blog on customer retention can help you get what you need

 

Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458

 

 

else

 Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Check these two blog on customer retention can help you get what you need

 

Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458

 

 

else

 Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.