cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jtmize Regular Visitor
Regular Visitor

dax max of not working

Each month I am updating my spreadsheet with the latest actuals + forecast for the remainder of the year by month. I use a "Forecast Month" column to indicate which month's forecast the data is from. So for example, we are in November now so I have 10 forecasts (Jan - Oct), the latest one being October 2017. 

 

I want to tag months in my spreadsheet as either historical or forecast based on when the month is relative to my most recent forecast (i.e. September 2017 would be historical but December would be forecast). I'm trying to use a simple calculated column formula to do this but Power BI does not recognize MAX... what am I missing here? 

 

Month Type = if [MonYr] <= MAX([PE FC MoYr]) then "Historical" else "Forecast"

1 REPLY 1
Highlighted
Microsoft v-huizhn-msft
Microsoft

Re: dax max of not working

Hi @jtmize,

What's the data type and format of [MonYr] and [PE FC MoYr]? MAX function is only used to number values, which evaluates a single column that contains numeric values, if the column contains no numbers, MAX returns a blank. Please review this blog for more details. Please share your sample data structure for further analysis.

Best Regards,
Angelia

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors