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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Looking for DAX Help for a Count of Orders After Event Order Date

Hello All,

 

I am looking to get a count of orders by account. I have an example of the columns i have below. 

 

More specificly im looking for a formula that would look at each account  and give me a count of orders after the order a specific event. 

 

AccountOrderKeyEvent IDEvent DateOrder Date
abc1551111/1/20211/1/2021
abc2561124/1/20213/25/2021
abc3571124/1/20212/10/2021
abc1581124/1/20211/6/2021
abc2591111/1/202110/10/2021
abc36011310/1/20212/10/2021
abc16111310/1/20211/25/2021
abc16111411/1/20211/25/2021

 

So if i use a event id slicer and select Event ID "111"  the account abc1 would return the following 

 

 Slicer : Event ID 111
Account Count of orders 
abc13
abc2 0

 

Ive been racking my brain for a formula for quite a while and am just looking for a bit of guidence, 

Thank you for any help.

 

Adam

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1640893531881.png

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

6 REPLIES 6
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1640893531881.png

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Thank you very much for your help this worked for me!

bcdobbs
Community Champion
Community Champion

Are the event ids always in chronological order?



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Anonymous
Not applicable

No they are not.  

No problem can you explain a little more about why abc2 would have a count of zero? Think I'm missing something!



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Anonymous
Not applicable

Of course, so abc 2 only purchased EventID 111  and did not purchase any other Event after that. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.