Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
DataNinja777
Super User
Super User

ConcatenateX helper calculated column to identify matching debit and credit balance only once

Hello,

 

I have a data with matching debit and credit balances in the past months record where the current month balance is only with debit balances and I need to prepare bookkeeping for matching credit balance entry.  I'd like to match off the debit and credit balances in the past month without aggregating but Power Pivot's default behavior is that numbers needs to be aggregated in a measure without appropriate granurality row context.  In order to show unique number of matching debit and credit, I have calculated a helper column like below.  As I have circled sample of matching pairs below, I'd like to match off only pairs of matching debits and credits and not more than 2 index numbers should appear in the helper column.  I'd appreciate it if you could let me know how I can just show matching pairs without concatenating 3rd onwards index numbers in the helper column below.  I am guessing something like a virtual table to order debit and credit balances line by line with matching index numbers will do the job.  

 

DataNinja777_1-1700975936559.png

To get the above helper column I've written the following dax formula.  

DataNinja777_2-1700976355443.png

Thank you for your help!

  

1 REPLY 1
danextian
Super User
Super User

Hi @DataNinja777 

 

Can you please post a usable sample data (not an image) that covers your use case and your expected result from that data? What you posted seems to be just a snippet of the data as your formula are referencing other columns.

 

Additional questions:

show matching pairs without concatenating 3rd onwards index  -  What is the third index? How do you determine so.

How to determine if they're matching? Match this row against which row?

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors