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.
Hello,
I am attempting to create a measure that will count the [Topic] of opportunties that were created in Dynamics CRM, that do not have a [Status] of "Open" in the last calendar month. As it is currently March, I want a count of February.
It is EASY putting this all in as a count of values and applying a visual level filter... BUT this needs to be a measure so I can use it in the calculation of another measure.
Here is what I have come up with so far but am getting an error that my "Created On" column has duplicate values.
Solved! Go to Solution.
Perhaps try a datediff:
DATEDIFF( TODAY(), 'Date'[CreatedOn] ,MONTH) = -1
I've had trouble with the datesinperiod before.
Here is what I am suggesting for your full formula:
# of Ops Opened Last Month = CALCULATE( COUNT(opportunities[Topic]), FILTER(opportunities,[status]<>"Open"), DATEDIFF( TODAY(), 'Date'[CreatedOn], Month ) = -1 )
Perhaps try a datediff:
DATEDIFF( TODAY(), 'Date'[CreatedOn] ,MONTH) = -1
I've had trouble with the datesinperiod before.
Here is what I am suggesting for your full formula:
# of Ops Opened Last Month = CALCULATE( COUNT(opportunities[Topic]), FILTER(opportunities,[status]<>"Open"), DATEDIFF( TODAY(), 'Date'[CreatedOn], Month ) = -1 )
@jtownsend21 Thank You! So much, I have been bashing my head in over this for the last 3 hours.
Any idea why the DATESINPERIOD function refuses to work?
Awesome, really helped me with my last calendar month issue
That worked! Thank you for your help.
Happy to help.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |