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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
v-huizhn-msft
Employee
Employee

Hi @Anonymous,

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors