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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

DAX help needed Filter Problem

I have data that looks like this

 

Credit Unions

Credit union key               credit union name  Membership size

1                                              ABC CU                                 20000

2                                              ABC CU                                 20000

3                                              ABC CU                                 20000

5                                              XXX CU                                 10000

 

Activations

Credit Union Key              Customer Key   Activation date

1                                              1                              10/31/18

1                                              2                              10/31/18

2                                              3                              11/01/18

3                                              4                              02/02/19

5                                              5                              01/03/19

5                                              6                              02/01/19

 

I want to find the  first date a customer activated at the Credit union

 

I am using this and it works until I put a page filter of 2019 onto my report

 

First Activation Date =

 

MINX(DISTINCT('Credit Unions'[Credit Union Name]),CALCULATE(min('Activations'[Activation Date])

, ALL(Dates[FullDate]))

 

I am also trying to get the count of activations in 2019 by doing this

Activation to New Cus =

 

CALCULATE([Total Activations],Filter('Credit Unions',[First Activation Date] >DATEVALUE("12/31/18")),all(Dates[FullDate]))

 

 

Lastly I need a year to date total as well

 

Thank you in advance.

 

Linda

5 REPLIES 5
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

First Activation Date =
MINX (
    DISTINCT ( 'Credit Unions'[Credit Union Name] ),
    CALCULATE ( MIN ( 'Activations'[Activation Date] ) )
)

Activation to New Cus =
CALCULATE (
    DISTINCTCOUNT ( 'Credit Unions'[credit union name] ),
    FILTER (
        ALLSELECTED ( 'Credit Unions'[credit union name] ),
        YEAR ( [First Activation Date] ) = YEAR ( TODAY () )
    )
)

1.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you so much - but your solution did not work - see screen shot below.  I renamed your formulas to First Activation Date 2 and Activation to New CU2.  You can see the results next to the correct ones that I did in SQL prior to loading the data.

 

This Visual is filtered to 2019

 

problem.PNG

Anonymous
Not applicable

oh man - this is driving me crazy.

 

I put an indicator in to give me a yes or no and this works

 

Test new cu =
if([First Activation Date] > DATEVALUE("12/31/18")

,"Y","N")
 
but then when I put it into this formula it doesn't work
 
Activation to New Cus =
countx(FILTER('Activations',[Test new cu]="Y"),'Activations'[customer key])
Anonymous
Not applicable

I gave up and ended up doing the logic in SQL but I would love to know the answer.

Anonymous
Not applicable

ok - I figured out the first activation peice

 

the new code is

MINX(DISTINCT('Credit Unions'[Credit Union Name]),CALCULATE(min('Activations'[Activation Date])
, ALL(Dates))
 
 
Duh
but I still need to get to the Activations to New Cus

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.