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
TS08
New Member

Dynamic Forecast slab

Hi, I was trying to create a Slab on the basis of Forecast Date and Today() for all the oreders created till date.

I have created a dax but it is not giving me desired result... please check below dax and out put screen shot: -

Forecast_Slab2 =

if(ISBLANK(sfdc[Delivery Forecasted Date]), "No Target",

if(sfdc[Delivery Forecasted Date]< TODAY(), "1) Target Missed",

if(MONTH(sfdc[Delivery Forecasted Date]) = MONTH(today()), "2) " & LEFT(Format(sfdc[Delivery Forecasted Date], "MMM"), 3) & " " & RIGHT(year(sfdc[Delivery Forecasted Date]), 2),

if((month(sfdc[Delivery Forecasted Date]) - MONTH(today()) = 1 || month(sfdc[Delivery Forecasted Date]) - MONTH(today()) = -11), "3) " & LEFT(format(sfdc[Delivery Forecasted Date], "MMM"), 3) & " " & RIGHT(year(sfdc[Delivery Forecasted Date]), 2),

if((MONTH(sfdc[Delivery Forecasted Date]) - MONTH(today()) = 2 || month(sfdc[Delivery Forecasted Date]) - MONTH(today()) = -10), "4) " & LEFT(format(sfdc[Delivery Forecasted Date], "MMM"), 3) & " " & RIGHT(year(sfdc[Delivery Forecasted Date]), 2), "5) > 3 Months")))))

 

Now the output is not as per the expecation. All these below highlighted results should be part of ">3Months": -

TS08_0-1664347944881.png

 

Thanks

TS

 

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @TS08 ,

There is nothing wrong  with the formula. Could you please provide your pbix file without privacy information and your desired output with more details?

 

Although you have provide a screenshot, the screenshot cannot find the sfdc[Delivery Forecasted Date] column.

 

How to Get Your Question Answered Quickly 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.