Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi PowerBi Community,
I will like to create a custom column in PowerBI that follows a function I have created in excel. The function is on the column "Number of Records" in excel. Basically taking the (sum of all issues created till that date)- (the sum of issues resolved till that day).
Need help in creating the DAX formula in powerbi. Thank you!
End result in Excel:
Formula in Excel:
Current PowerBI layout
Solved! Go to Solution.
@Benjamin_chee Please try below.
Create a new column which will be a supporting column for the main logic.
TotalIssues = Test222Lkp[IssuesCreated]-Test222Lkp[IssuesResolved]
Then, create a new column which is your expected output
NumOfRecords = CALCULATE(SUM(Test222Lkp[TotalIssues]),FILTER(Test222Lkp,Test222Lkp[DateCreated]<=EARLIER(Test222Lkp[DateCreated])))
Note - Please try to post the sample data in copiable format which will be great in time saving.
Proud to be a PBI Community Champion
@Benjamin_chee Please try below.
Create a new column which will be a supporting column for the main logic.
TotalIssues = Test222Lkp[IssuesCreated]-Test222Lkp[IssuesResolved]
Then, create a new column which is your expected output
NumOfRecords = CALCULATE(SUM(Test222Lkp[TotalIssues]),FILTER(Test222Lkp,Test222Lkp[DateCreated]<=EARLIER(Test222Lkp[DateCreated])))
Note - Please try to post the sample data in copiable format which will be great in time saving.
Proud to be a PBI Community Champion
Thank you Pattem! This works great, will take note to post the data in copiable format in the future. Thank you!!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |