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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mak
Helper I
Helper I

Compare data records with previous period and calculate Count

Goal is to find how many Clients were a repeat Clients

 

I have a dateSlicer and a table with Clients with VisitDate

 

Clients Table

Client Id .   VisitDate . 

 

Report is a Matrix as below

DateSlicer[Date] .  #Clients .   #RepeatClients .  %RepeatClients

Jan .                     10 .          0                         0

Feb                       20           5                         50%

 

Now sure how should I proceed on it

 

thank you

 

1 REPLY 1
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @mak

 

You can probably get something basic up and running with the following measures:.  Please just change the table/column names to match yours.

 

Oh and I coverted your first column to an actual date , eg '2017-01-01' rather thant the text 'Jan'

 

Sum of Clients = CALCULATE(sum('Table2'[#Clients]))


Sum of Clients Previous Month = CALCULATE('Table2'[Sum of Clients],PREVIOUSMONTH('Table2'[Date]))


Difference = [Sum of Clients]-[Sum of Clients Previous Month]

 

clients.png

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors