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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

DAX Function not recognising measure as ColumnTable

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:

 

 

Bellemocha_1-1683543120340.png

Below is my attempt in recreating the formula. As you can see the measure is greyed out.

 

Bellemocha_2-1683543246043.png

 

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!:)

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

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] )
)

 

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

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] )
)

 

Anonymous
Not applicable

Thank You!

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.