The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Community, I need a little help here.
I have a table like the one bellow and I want to define 2 measures:
1) Value of Estimated opportunities, considering first day of each month of the year.
In this case, how to consider opportunities that were set to status 'Won' during the month as 'Open' on the first day of the month (past time intelligence)?. Ex: Value of All opportunities, on 01/07/2027, based on 'EstimatedClose' date.
2) Value of Won opportunities, considering last day of each month of the year, based on 'ActualClose" & that EstimatedClose same month.
idOpportunity | Createdon | EstimatedClose | ActualClose | Status | Value |
1 | 01/07/2021 | 22/07/2021 | Open | 1.000,00 | |
2 | 01/07/2021 | 22/07/2021 | 22/07/2021 | Won | 1.000,00 |
3 | 01/07/2021 | 22/07/2021 | 22/07/2021 | Won | 1.000,00 |
4 | 01/07/2021 | 22/07/2021 | Open | 1.000,00 | |
5 | 01/07/2021 | 22/07/2021 | Lost | 1.000,00 |
Solved! Go to Solution.
You will want to use a Dates table and use its [date] column for your visuals. Once you have that you can create all your measures as needed.
Thanks. I did find a solution.
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |