cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

Re: COUNTIFS on top of another calculation

When you talk about "calcs" are you referring to calculated columns or measures? From what I can see you should be able to create your buckets using a calculated column, then create a simple measure that has =COUNTROWS('DAILY SALES') as the expression and you should get the results that you are after. I can't actually test properly using the sample data you provided as it's missing the [New Business Investor] column, but if create a calculated column to generate buckets over the [Adviser policy frequency] column I get the results I expect

 

2019-07 rowcounts.png

Basia Regular Visitor
Regular Visitor

Re: COUNTIFS on top of another calculation

Yeah, I'm referring to column calculations. I did try a "over partition by" for the adviser frequency, but got some weird large numbers.

Maybe I can go back to the original calc and just divide by the number of transactions I have so that I get the correct value at the rolled up level.

Anyway, I'm doing Dax training currently, so hopefully I'll find something that delivers the result! Smiley Happy

Highlighted
Basia Regular Visitor
Regular Visitor

Re: COUNTIFS on top of another calculation

Hi All, 

I have solved the issue myself.

It was mainly to do with context and my misunderstanding of it.

 

Solution is:

COUNTAX (
ALLSELECTED (Adviser[Adviser Name] ),
CALCULATE ( COUNTA (Sales[Frequency Factor Bucket]) )
)

 

Basia

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)