Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
85 | |
83 | |
66 | |
61 | |
58 |
User | Count |
---|---|
194 | |
111 | |
105 | |
79 | |
71 |