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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Counting transaction combinations

I'm trying to create a matrix that will allow me to see when a void is followed by a no sale via direct query into my company database. 

 

I think I want to go about this similar to a countif function in excel, using the time when the transaction took place as the if statement, so that if time of void - time of no sale is >10. Can someone help me brainstorm potentional DAX solutions to this?

 

 The problem I'm having is trying to figure out how to retrieve the sales time, rather than counting, summing, or otherwise manipulating it beforehand so that it will do the computation. It's pretty easy to put a filter(Transaction Type = Void, etc to isolate the transactions I want to look at.

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

Sample data and expected output will be helpful to provide an accurate solution.If you need further help,please follow the How to Get Your Question Answered Quickly to post some simplified data and expected output.It would be better if you can upload the .pbix file to OneDrive and post the link here. Do mask sensitive data before uploading.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors