This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Need a filter based on the below sample data, transaction level
Please help
Hi, @Anonymous
Please correct me if I wrongly understand your question.
I think you can put filters inside your DAX measure to show CRonly or DRonly, or ALL.
If it is OK with you, please share your sample pbix file, then I can come up with more accurate measures.
Thank you.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Try this:
Column =
VAR D = Table [DEBIT]
VAR C = Table [CREDIT]
Return
IF(
C = BLANK() && D <> BLANK() , "ONLY CR" ,
IF(
D = BLANK() && C <> BLANK() , "ONLY DR" ,
IF(
C <> BLANK() && D <> BLANK() , "CR & DR" ,
IF(
D = BLANK() && C = BLANK() , "ZERO" ,
BLANK()
)
@tex628 I tried different formulas, but filter is not showing CR & DR, rest everything is showing.
Can you by any chance provide a picture of the outcome?
/ J
@tex628 ,first customer is having both debit and credit. In need that filter in this case.
That is because on a transactional level there are no records that has both Credit and Debit.
Currently you have only credit transactions in "ONLY CR BAL" table, and you have only debit transactions in the "ONLY DR BAL" table.
In your "CR & DR" Table, do you want all transactions or what is your aim here?
/ J
@tex628 first customer is having both debit and credit. In need that filter in this case.
@Anonymous , You can create a new column like
Switch( True(),
not(isblank([Debit])) && not(isblank([Debit])) , "CR & DR" ,
(isblank([Debit])) && (isblank([Debit])) , "Zero" ,
not(isblank([Debit])) ,"Only CR",
"Only DR"
)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 25 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 27 | |
| 20 | |
| 19 |