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 @rajasekar_o ,
I created a sample pbix file(see the attachment), please find the details in it.
1. Add a index column in Power Query Editor
2. Create a measure as below to get the closing balance
closing balance =
VAR _index =
SELECTEDVALUE ( 'Table'[Index] )
RETURN
CALCULATE (
SUM ( 'Table'[credit] ) - SUM ( 'Table'[debit] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Index] <= _index )
)
Best Regards
Hi @rajasekar_o ,
I created a sample pbix file(see the attachment), please find the details in it.
1. Add a index column in Power Query Editor
2. Create a measure as below to get the closing balance
closing balance =
VAR _index =
SELECTEDVALUE ( 'Table'[Index] )
RETURN
CALCULATE (
SUM ( 'Table'[credit] ) - SUM ( 'Table'[debit] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Index] <= _index )
)
Best Regards
Share sample pbix file to help you.
I have debit credit data only i want to calculate closing balance
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 |
---|---|
106 | |
98 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |