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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Number of Customers with Growth

Gentlemen, I need help again, I would like to measure in a certain period, how many times a customer had a drop in billing compared to the previous month, Ex:

 

Client Month %Current Month x Previous Month

 

bakery Jan -15%

 

bakery Feb -12%

 

bakery Mar  5%

 

 

 

In the example above, I would have a measure for the bakery customer, informing that he had 2 (two) months with which billing drop compared to the previous month!!!

4 REPLIES 4
johnt75
Super User
Super User

I think a SUMX over a summary table would give you what you need

Num months with reduction =
CALCULATE (
SUMX(
ADDCOLUMNS( SUMMARIZE( Customer, Customer[Customer Name], 'Date'[Year Month] )
"@monthly change", [Month on Month Change]
),
IF ( [@monthly change] < 1, 1 )
),
DATESBETWEEN( 'Date'[Date], DATE( YEAR( TODAY() ), MONTH( TODAY() ) - 3, 1 ), TODAY() )
)

 

Anonymous
Not applicable

Thanks for the quick response, but in fact I already have the evolution calculation in relation to the previous month, what I would need was to analyze based on this calculation, count in a certain period, 3 months for example, how many times we had a drop in evolution! !!

@Anonymous , check if rolling 3 can help

Rolling 3 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))

 

 

Rolling 3 before three= CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],eomonth(MAX('Date'[Date ]),-3),-3,MONTH))

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
amitchandak
Super User
Super User

@Anonymous , Assume you have Billing measure

 

Billing % =

divide([Billing], calculate([Billing], allselected()) )

 

Then this month vs Last month , date table time intelligence

 

MTD Sales = CALCULATE([Billing %],DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE([Billing %],DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE([Billing %],previousmonth('Date'[Date]))

 

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

 

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.