Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
I work for a Medical Billing Company and I have been asked to create a formula on how long it takes a claim to be paid from Billed Date to Paid Date.
I'd assume the formula is Paid Date minus Billed Date, but I do not know how to write that formula in Power BI. I tried quick measure, however, that did not work.
Solved! Go to Solution.
Payment Date minus Billed Date = datediff(selectedvalue(Dataset_Payments_Dataset_BP[Billed_Date]),selectedvalue(Dataset_Payments_Dataset_BP[Payment_Date]), day )
Payment Date minus Billed Date = datediff(selectedvalue(Dataset_Payments_Dataset_BP[Billed_Date]),selectedvalue(Dataset_Payments_Dataset_BP[Payment_Date]), day )
You can use the DATEDIFF function! See documentation below.
https://learn.microsoft.com/en-us/dax/datediff-function-dax
More specifically, click new measure instead of quick measure. Then use:
DATEDIFF('vw_Demo_Payments_Dataset_BP'[Payment_Date],'vw_Demo_Payments_Dataset_BP'[Billed_Date],DAY)
If this works for you, please mark as a solution!
Got Tips on how to write that formula using the fields I have?
Like, what woould that formula look like?
I updated my answer above to include that information.
User | Count |
---|---|
84 | |
70 | |
68 | |
58 | |
51 |
User | Count |
---|---|
44 | |
41 | |
34 | |
34 | |
30 |