PowerPivot Distinct New User by Date

vsridha

New Member
Joined
Apr 21, 2017
Messages
2
Hi All, this is my first post.

I am very new to PowerPivot and I want to recreate a calculation that I have in my normal pivot table in power pivot.

Lets say I have 2 columns; Column 1: UserName, Column 2: Date. I want a PivotTable/Chart with Distinct New users by date (who have visited my website). In the normal pivot table, I had a helper column in my source table with this formula (=IF(COUNTIF($A$2:$A2, $A2)>1,0,1). So this marks the first visit of each user as 1 and my pivot sums this to give new users who visit my site each day.

How can I recreate this in POWERPIVOT (Excel 2013) without using a helper column? Can I use Calculated Measure or Calculated Column for this?

Thanks in advance for the help!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Solved this with;
Code:
[COLOR=#333333]DistinctNew :=[/COLOR]<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit; line-height: 12px;">    CALCULATE (
        DISTINCTCOUNT ( Table1[username] ),
        FILTER (
            ALL ( Table1[LoginDate] ),
            Table1[LoginDate] <= MAX ( Table1[LoginDate] )
        )
    )
    - CALCULATE (
        DISTINCTCOUNT ( Table1[username] ),
        FILTER (
            ALL ( Table1[LoginDate] ),
            Table1[LoginDate] < MAX ( Table1[LoginDate] )
        ) </code>[COLOR=#333333]    )[/COLOR]
 
Upvote 0
I'm glad you have a solution but for the future please read the forum rules on cross-posting and try to follow them. Thanks. :)
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top