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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Need a filter based on transaction level

Need a filter based on the below sample data, transaction level

Please help

 

Capture.PNG

9 REPLIES 9
Jihwan_Kim
Super User
Super User

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.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

tex628
Community Champion
Community Champion

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()
)


Connect on LinkedIn
Anonymous
Not applicable

@tex628 I tried different formulas, but filter is not showing CR & DR, rest everything is showing.

tex628
Community Champion
Community Champion

Can you by any chance provide a picture of the outcome? 

/ J


Connect on LinkedIn
Anonymous
Not applicable

Anonymous
Not applicable

@tex628 ,first customer is having both debit and credit. In need that filter in this case.

tex628
Community Champion
Community Champion

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


Connect on LinkedIn
Anonymous
Not applicable

@tex628 first customer is having both debit and credit. In need that filter in this case.

amitchandak
Super User
Super User

@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"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.