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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
YcnanPowerBI
Helper II
Helper II

Calculate % difference in MOM measures

Hoping this is a simple one for someone.

 

I have a measure that divides repeat callers by all callers within 2 days for our repeat rate.  I am diplaying that measure monthly.  I would like to calculate the difference +/- from May to June and so on. Any help is greatly appreciated.

 

Measure being used:

Repeat Rate = DIVIDE([1 Count Repeats],[1 Count All Calls])
 
Sample Data:
Ticket Category _CSGLeg - DateCalls
Point of Sale::Printing15-Jun-241
Restaurant Management::Employees16-Jun-241
Point of Sale::Printing15-Jun-241
Point of Sale::Printing15-Jun-241
Restaurant Management::Licensing15-Jun-241
Windows Issue::Operating System16-Jun-241
Point of Sale::Reports15-Jun-241
Credit Cards::Batching15-Jun-241
Point of Sale::Close Day15-Jun-241
Windows Issue::Windows Services16-Jun-241
Point of Sale::Balance Drawer/Cashout15-Jun-241
Point of Sale::Printing15-Jun-241
Point of Sale::Order Entry16-Jun-241
 
Expected Outcome:
YcnanPowerBI_2-1718636950207.png

 


 


 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @YcnanPowerBI 

 

First, you can use the following DAX to get the repeated calls every two days:

Repeat Count per two day = VAR _selectdate = DAY(SELECTEDVALUE('Table'[Leg - Date]))
RETURN
CALCULATE(COUNTROWS('Table'),FILTER('Table',DAY('Table'[Leg - Date])=_selectdate||DAY('Table'[Leg - Date]=_selectdate+1)))

 

Then you can use the following DAX to get the ratio of repeat calls to total calls and the difference for each month:

Divide = 
VAR _selectmonth = MONTH(SELECTEDVALUE('Table'[Leg - Date]))
VAR reprtcount = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),MONTH('Table'[Leg - Date]) =_selectmonth&&[Repeat Count per two day]<>1))
VAR countpermonth = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),MONTH('Table'[Leg - Date])=_selectmonth))
RETURN
reprtcount / countpermonth
Difference = VAR _selectmonth = MONTH(SELECTEDVALUE('Table'[Leg - Date]))
RETURN
[Divide] -  CALCULATE([Divide],FILTER(ALL('Table'),MONTH('Table'[Leg - Date])= _selectmonth-1))

 

vjialongymsft_0-1718679755299.png

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @YcnanPowerBI 

 

First, you can use the following DAX to get the repeated calls every two days:

Repeat Count per two day = VAR _selectdate = DAY(SELECTEDVALUE('Table'[Leg - Date]))
RETURN
CALCULATE(COUNTROWS('Table'),FILTER('Table',DAY('Table'[Leg - Date])=_selectdate||DAY('Table'[Leg - Date]=_selectdate+1)))

 

Then you can use the following DAX to get the ratio of repeat calls to total calls and the difference for each month:

Divide = 
VAR _selectmonth = MONTH(SELECTEDVALUE('Table'[Leg - Date]))
VAR reprtcount = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),MONTH('Table'[Leg - Date]) =_selectmonth&&[Repeat Count per two day]<>1))
VAR countpermonth = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),MONTH('Table'[Leg - Date])=_selectmonth))
RETURN
reprtcount / countpermonth
Difference = VAR _selectmonth = MONTH(SELECTEDVALUE('Table'[Leg - Date]))
RETURN
[Divide] -  CALCULATE([Divide],FILTER(ALL('Table'),MONTH('Table'[Leg - Date])= _selectmonth-1))

 

vjialongymsft_0-1718679755299.png

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.