Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm new in DAX. I'm trying to create a measure to show in a card, volume sales for the previous month (current month is still live so its not a full month). I have found the below example function:
Previous Month = CALCULATE(SUM(InternetSales_USD[SalesAmount_USD]), PREVIOUSMONTH('DateTime'[DateKey]))
This is the measure I'm trying to use in the function:
Below is my attempt in recreating the formula. As you can see the measure is greyed out.
I am connected to live data. The measure I want to use seems to be a background calculation, I did not create it.
An ideas how I can fix this?
Thanks!:)
Solved! Go to Solution.
Hi @Anonymous
SUM functions accepts only column as its argument and does not accept a measure. To recalculate a mesure no need to use SUM just use
Previous Month =
CALCULATE (
[Physical Cases Direct Actual],
PREVIOUSMONTH ( 'DateTime'[DateKey] )
)
Hi @Anonymous
SUM functions accepts only column as its argument and does not accept a measure. To recalculate a mesure no need to use SUM just use
Previous Month =
CALCULATE (
[Physical Cases Direct Actual],
PREVIOUSMONTH ( 'DateTime'[DateKey] )
)
Thank You!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |