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.
I have the following problem. I have a table that containts the following fields
<date>, <offer code>, <status>. <comment>
<date> = obvioys
<offer code> = a unique code for a customer offer
<status> = the status of the offer, for example "QUALIFIED", "OFFER", "WON", "CONTRACTS" etc.
<comment>= user comments.
Now, I have the following two records
1/feb/2017, 123, WON, "customer informed we got the job"
2/feb/2017, 123, WON, "customer asked some clarifications before starting contract negotiation"
these are two records for the offer 123 at two different dates. I want to build a report whereby I report when was the earliest date that an offer appears to be WON so that I can report the number and volume of business generate each month.
how do I select the earliest (date wise) record?
thnx
Solved! Go to Solution.
Hi @Anonymous,
You can try to use below formula which used to calculate monthly count of order code:
Measure:
Monthly Count: COUNTAX(FILTER(ALLSELECTED(Table), [Date]<=MAX([Date])&&Month([Date])=MONTH(MAX([Date]))&&[State]="Won"),[offer code])
In addition, you can use summarize function to summary the records and show the oldest records.
For example:
Summary Table = SUMMARIZE(FILTER(ALL('Table'),[State]="Won"),'Table'[Order Code],"MinDate",MIN([Date]),"Count",COUNT('Table'[Order Code]))
Regards,
Xiaoxin sheng
Hi @Anonymous,
You can try to use below formula which used to calculate monthly count of order code:
Measure:
Monthly Count: COUNTAX(FILTER(ALLSELECTED(Table), [Date]<=MAX([Date])&&Month([Date])=MONTH(MAX([Date]))&&[State]="Won"),[offer code])
In addition, you can use summarize function to summary the records and show the oldest records.
For example:
Summary Table = SUMMARIZE(FILTER(ALL('Table'),[State]="Won"),'Table'[Order Code],"MinDate",MIN([Date]),"Count",COUNT('Table'[Order Code]))
Regards,
Xiaoxin sheng
thanks
how would the "monthly code" be defined? will it be a new measure? a new table.
RE: summary table, this is probably what I need. I'll give it a try and update
BR
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 |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |