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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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