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
akshayraom
Frequent Visitor

Get Monthly data from cumulative data

Hi All,

 

I have monthly cumulative data on my devices coulmn , i need to create a new column which gives monthly number

Ex : Current month - previous month

please help with Dax query

 

akshayraom_0-1682075806230.png

 

1 ACCEPTED SOLUTION
akshayraom
Frequent Visitor

Got the answer

MOnthly Devices =
VAR preval =
CALCULATE(MAX(pbi[devices]), pbi[date] < EARLIER(pbi[date]), REMOVEFILTERS(pbi))

return
pbi[devices]-preval

View solution in original post

1 REPLY 1
akshayraom
Frequent Visitor

Got the answer

MOnthly Devices =
VAR preval =
CALCULATE(MAX(pbi[devices]), pbi[date] < EARLIER(pbi[date]), REMOVEFILTERS(pbi))

return
pbi[devices]-preval

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.