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.
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!!
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 |
---|---|
114 | |
100 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |