Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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:
| Ticket Category _CSG | Leg - Date | Calls |
| Point of Sale::Printing | 15-Jun-24 | 1 |
| Restaurant Management::Employees | 16-Jun-24 | 1 |
| Point of Sale::Printing | 15-Jun-24 | 1 |
| Point of Sale::Printing | 15-Jun-24 | 1 |
| Restaurant Management::Licensing | 15-Jun-24 | 1 |
| Windows Issue::Operating System | 16-Jun-24 | 1 |
| Point of Sale::Reports | 15-Jun-24 | 1 |
| Credit Cards::Batching | 15-Jun-24 | 1 |
| Point of Sale::Close Day | 15-Jun-24 | 1 |
| Windows Issue::Windows Services | 16-Jun-24 | 1 |
| Point of Sale::Balance Drawer/Cashout | 15-Jun-24 | 1 |
| Point of Sale::Printing | 15-Jun-24 | 1 |
| Point of Sale::Order Entry | 16-Jun-24 | 1 |
Solved! Go to Solution.
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 / countpermonthDifference = VAR _selectmonth = MONTH(SELECTEDVALUE('Table'[Leg - Date]))
RETURN
[Divide] - CALCULATE([Divide],FILTER(ALL('Table'),MONTH('Table'[Leg - Date])= _selectmonth-1))
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 / countpermonthDifference = VAR _selectmonth = MONTH(SELECTEDVALUE('Table'[Leg - Date]))
RETURN
[Divide] - CALCULATE([Divide],FILTER(ALL('Table'),MONTH('Table'[Leg - Date])= _selectmonth-1))
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |