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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.