Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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": -
Thanks
TS
Hi @Anonymous ,
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 37 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |