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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Romani
Helper II
Helper II

Generic date

 

CUSTOMER_NAMEOffer IdOFFERS_DATEOFFER_ACCEPTANCE_DATEREJECTION_DATEINVESTIGATION_DATESUBMISSION_TO_RISKSUBMISSION_DATE_TO_CREDITAPPROVAL_DATE
Client 2113/02/2023   15/02/202314/02/202314/02/2023
Client 3211/12/2023   12/03/202322/11/202324/12/2023
Client 7309/06/202320/09/2023 22/08/202310/01/202324/09/202309/04/2023
Client 9428/08/202330/08/2023 22/08/202309/05/202309/04/202309/04/2023
Client 11504/03/202306/07/2023 06/07/2023   
Client 12621/12/202317/01/2024 26/12/202320/02/202420/02/202419/02/2024
Client 14704/10/202319/04/2023 04/09/202305/09/202324/05/2023 
Client 15804/06/202304/06/2023     
Client 18912/04/2023  12/05/2023   
Client 201021/12/202318/01/2024 27/12/202322/01/202421/01/202421/01/2024
Client 27

11

09/01/202324/09/2023 09/10/202312/05/202312/04/202311/02/2023
Client 311224/10/2023 12/04/2023    
Client 321301/03/202322/01/2023 15/11/202214/02/202323/01/202320/01/2023
Client 381416/11/2023   21/11/202321/11/202316/11/2023
Client 431503/05/202303/05/2023 22/02/202303/05/202303/05/202303/06/2023
Client 441609/03/202324/09/2023 09/11/202310/12/202310/02/202310/09/2023
Client 491710/03/202310/03/2023 29/08/202311/08/202310/11/202310/11/2023
Client 501809/01/202324/09/2023 24/08/202326/09/202326/09/202326/09/2023
Client 511924/09/2023   11/12/202311/09/202326/09/2023
Client 602010/10/2023 20/11/2023 10/10/202320/11/2023 

I have all these dates 

 

To explain the situation i want to have dax or calculated column to give the below desired out put : 

1- the total number of offers presented in specific period and this i can get it from the total offers date to COUNT it

2- if the total number of offers in january equal 10 so i want something to see the last step that the offer is stpped on it so for example should be 2 at offering first stage 3 are pending accceptane 5 are under investigation that could happen when trackin the different dates of this offer 

10 REPLIES 10
BeaBF
Super User
Super User

@Romani let's nstart from point 1. which is the start date and end date of the period?

The measure is:

Total Offers in Period =
VAR StartDate = DATE(2023, 1, 1) // Set your desired start date
VAR EndDate = DATE(2023, 12, 31)  // Set your desired end date
RETURN
COUNTROWS (
    FILTER (
        YourTable,
        YourTable[OFFERS_DATE] >= StartDate &&
        YourTable[OFFERS_DATE] <= EndDate
    )
)
you have to set the start date and end date.
 
BBF

step one achieved 
what about step 2 

2- if the total number of offers in january equal 10 so i want something to see the last step that the offer is stpped on it so for example should be 2 at offering first stage 3 are pending accceptane 5 are under investigation that could happen when trackin the different dates of this offer 

@Romani perfect! please explain the second step better, with an examploe on data

 

BBF

Capture.PNG

 Summary

  • Total Offers: 5
  • Under Investigation: 1 (Client 11)

Submission to Risk Phase

  • Clients whose offers ended in this phase:
    • Client 32
    • Client 44

Submission to Credit Phase

  • Clients whose offers ended in this phase:
    • Client 85

Approval Phase

  • Clients whose offers ended in this phase:
    • Client 49
      So based above info  when iam chossing this period give me this result
      did you get my point ?

@Romani second step:

Total Offers = COUNTROWS('Table')

Under Investigation =
CALCULATE(
COUNTROWS('Table'),
'Table'[OfferStatus] = "Under Investigation"
)

 

Clients Submission to Risk =
CALCULATE(
COUNTROWS('Table'),
'Table'[SUBMISSION_TO_RISK] <> BLANK(),
'Table'[SUBMISSION_DATE_TO_CREDIT] = BLANK(),
'Table'[APPROVAL_DATE] = BLANK(),
'Table'[REJECTION_DATE] = BLANK(),
'Table'[INVESTIGATION_DATE] = BLANK()
)

 

Clients Submission to Credit =
CALCULATE(
COUNTROWS('Table'),
'Table'[SUBMISSION_DATE_TO_CREDIT] <> BLANK(),
'Table'[APPROVAL_DATE] = BLANK(),
'Table'[REJECTION_DATE] = BLANK(),
'Table'[INVESTIGATION_DATE] = BLANK()
)

 

Clients Approval =
CALCULATE(
COUNTROWS('Table'),
'Table'[APPROVAL_DATE] <> BLANK()
)

 

If you want Client name:
Client Names Under Investigation =
CONCATENATEX(
FILTER(
'Table',
'Table'[OfferStatus] = "Under Investigation"
),
'Table'[CUSTOMER_NAME],
", "
)

Client Names Submission to Risk =
CONCATENATEX(
FILTER(
'Table',
'Table'[SUBMISSION_TO_RISK] <> BLANK() &&
'Table'[SUBMISSION_DATE_TO_CREDIT] = BLANK() &&
'Table'[APPROVAL_DATE] = BLANK() &&
'Table'[REJECTION_DATE] = BLANK() &&
'Table'[INVESTIGATION_DATE] = BLANK()
),
'Table'[CUSTOMER_NAME],
", "
)

 

Client Names Submission to Credit =
CONCATENATEX(
FILTER(
'Table',
'Table'[SUBMISSION_DATE_TO_CREDIT] <> BLANK() &&
'Table'[APPROVAL_DATE] = BLANK() &&
'Table'[REJECTION_DATE] = BLANK() &&
'Table'[INVESTIGATION_DATE] = BLANK()
),
'Table'[CUSTOMER_NAME],
", "
)

 

Client Names Approval =
CONCATENATEX(
FILTER(
'Table',
'Table'[APPROVAL_DATE] <> BLANK()
),
'Table'[CUSTOMER_NAME],
", "
)

 

BBF

Totally wrong
i think you need to read again what i want to give me the desired output

Anonymous
Not applicable

Hi, @Romani 

 

You can try the following methods.

Measure:

Total Offers = CALCULATE(COUNT('Table'[CUSTOMER_NAME]),FILTER(ALL('Table'),[OFFERS_DATE]>=MIN('Date'[Date])&&[OFFERS_DATE]<=MAX('Date'[Date])))
Under Investigation = CALCULATE(COUNT('Table'[CUSTOMER_NAME]),FILTER(ALL('Table'),[OFFERS_DATE]>=MIN('Date'[Date])&&[OFFERS_DATE]<=MAX('Date'[Date])&&[SUBMISSION_TO_RISK]=BLANK()))
Measure = IF(SELECTEDVALUE('Table'[OFFERS_DATE])>=MIN('Date'[Date])&&SELECTEDVALUE('Table'[OFFERS_DATE])<=MAX('Date'[Date]),1,0)

vzhangtinmsft_0-1721702776810.pngvzhangtinmsft_1-1721702796887.png

I can do this part. For other desired outcomes, you need to elaborate on the logic.

 

Best Regards,

Community Support Team _Charlotte

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

 

you didnt get my point of view
what i need to see the last date of the offer and count it in this date
The DAX measure Under Investigation counts the number of customers whose SUBMISSION_TO_RISK date is blank (meaning they are under investigation)

Under Investigation = CALCULATE(COUNT('Table'[CUSTOMER_NAME]),FILTER(ALL('Table'),[OFFERS_DATE]>=MIN('Date'[Date])&&[OFFERS_DATE]<=MAX('Date'[Date])&&[SUBMISSION_TO_RISK]=BLANK()))


Capture.PNG

 

 Summary

  • Total Offers: 5
  • Under Investigation: 1 (Client 11)

Submission to Risk Phase

  • Clients whose offers ended in this phase:
    • Client 32
    • Client 44

Submission to Credit Phase

  • Clients whose offers ended in this phase:
    • Client 85

Approval Phase

  • Clients whose offers ended in this phase:
    • Client 49
      So based above info  when iam chossing this period give me this result
      did you get my point ?

@Anonymous ???

@BeaBF 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.