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
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
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.