Simple DAX formula help  [Solved]

Anything related to PowerPivot and DAX Formuale
Posts: 5
Joined: Mon Sep 02, 2019 11:29 pm

Simple DAX formula help

Postby ierosadopr » Mon Sep 02, 2019 11:33 pm

Assuming I have the following 4 columns in my PIVOT table:

account | months | sales | transactions

I need to a new column that counts the total number of month that appear on the pivot results per account.

I currently have this, measure1:=COUNTROWS(ALLSELECTED(Table[date (Month)]))

But this counts the months for all accounts.

I need this on a per-account basis :(

Sorry, I literally just started using DAX a few days ago.

Posts: 20
Joined: Wed Oct 17, 2018 5:23 am

Re: Simple DAX formula help  [Solved]

Postby Jonny1010101010 » Tue Sep 10, 2019 5:46 am


I think you need the =COUNTROWS(Table) instead, and then bring in your 'Account' field as a filter context. I've attached an example.

Thanks, Jonny
(122.63 KiB) Downloaded 23 times

Return to “PowerPivot/DAX”

Who is online

Users browsing this forum: No registered users and 0 guests