The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Solved! Go to Solution.
Got the answer
MOnthly Devices =
VAR preval =
CALCULATE(MAX(pbi[devices]), pbi[date] < EARLIER(pbi[date]), REMOVEFILTERS(pbi))
return
pbi[devices]-preval
Got the answer
MOnthly Devices =
VAR preval =
CALCULATE(MAX(pbi[devices]), pbi[date] < EARLIER(pbi[date]), REMOVEFILTERS(pbi))
return
pbi[devices]-preval
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |