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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
lcasey
Post Prodigy
Post Prodigy

simple measure

01.png

 

Hello ,

 

So I have spent 2 hours trying to create this formula with no luck. 

 

I am simply trying to get a count of all documents that are currently open so that I can show the number of OPEN documents per country.

 

Seems like a  real simple calculation but DAX of course makes it impossible to understand.  I just wish they would abolish this crazy language as it makes no sense and simple calculations are extremely difficult to create.

 

 How can I simply add a column that will Calculate all open documents per country?

 

 

 

 

1 ACCEPTED SOLUTION
alanhodgson
Solution Supplier
Solution Supplier

Hey @lcasey.

 

I assume you are using the Country as the slicer, so I would use this to make your measure:

 

New Measure = CALCULATE(COUNTA(Transactions[Column1]), FILTER(Transactions, Transactions[Column2] > 0))

 

Hope this helps,

 

Alan

View solution in original post

3 REPLIES 3
alanhodgson
Solution Supplier
Solution Supplier

Hey @lcasey.

 

I assume you are using the Country as the slicer, so I would use this to make your measure:

 

New Measure = CALCULATE(COUNTA(Transactions[Column1]), FILTER(Transactions, Transactions[Column2] > 0))

 

Hope this helps,

 

Alan

Thanks!   I am still struggling with this language. I really wish I never would have learned SQL now. I think there is some sort of block in my brain preventing me from understanding this language.  I need to practice much more!!!!

Yeah, I totally understand Smiley Happy

 

Check out the article here.

The author does a series of articles titled "From SQL to DAX" that might help you out.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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