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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
adeeln
Post Patron
Post Patron

Need Help to write Dax.

I have Total Open Opportunity Count Measure and Date Dimention table that based on closed date.I need overdue,0-30 days,1-3 month,3-6 months,and >6 month measures for total open opportunities.

adeeln_0-1601461740890.png

Link of my Report

6 REPLIES 6
MFelix
Super User
Super User

Hi @adeeln ,

 

The link is asking for a password to acces the folder and download the file.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix Please try drive Link.

Hi @adeeln ,

 

Both of them are asking for password.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hey @MFelix,

Can you please check now? It should work. 

 

Hi @adeeln ,

 

Believe your issue is related with the filter part of the formula where you are picking up the last date, since you have no filter on it will pick the maximum value of the calendar date that is 26/12/2020 if you look a your data the last value for close date is 26/11/2020 so it's only picking 1 value.

 

Try to correct your measure to:

Nb Of Open Opportunities 0 to 30D =
CALCULATE (
    [Nb Of Open Opportunities];
    FILTER (
        ALLSELECTED ( Opportunity[ClosedDate] );
        Opportunity[ClosedDate] <= MAX ( DimDate[Date] )
            && Opportunity[ClosedDate]
                >= MAX ( DimDate[Date] ) - 30
    )
) + 0

Check if this is working changing the -30 to -60 and so on.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @adeeln ,

 

Would you please explain more about your requirements?  I am sorry that I am not familiar with Open Opportunity. Could you please explain your expected output in detail?

 

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

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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