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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Naveen29
Helper II
Helper II

Dax

I would like to create a report something like as:

Naveen29_0-1726764653277.png

My database data like this: 

Customer IDCustomer creation dateOrder dateOrder Number
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Naveen29 ,

 

Based on your description, I created this data and a date table.

vkaiyuemsft_1-1726800289900.png

 

You can then create these measures.

CustomersCreated =
CALCULATE (
    COUNT ( 'Table'[Customer ID] ),
    FILTER ( ALL ( 'Table' ), MONTH ( 'Table'[Customer creation date] ) = 1 )
)

 

MEASURE =
CALCULATE (
    COUNT ( 'Table'[Customer ID] ),
    FILTER (
        ALL ( 'Table' ),
        MONTH ( 'Table'[Customer creation date] ) = 1
            && MONTH ( 'Table'[Order date] ) = MONTH ( MAX ( 'DAX DateTable'[Date] ) )
    )
)

 

Measure 2 = 
DIVIDE('Table'[MEASURE],'Table'[CustomersCreated])

vkaiyuemsft_2-1726800321721.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Naveen29 ,

 

Based on your description, I created this data and a date table.

vkaiyuemsft_1-1726800289900.png

 

You can then create these measures.

CustomersCreated =
CALCULATE (
    COUNT ( 'Table'[Customer ID] ),
    FILTER ( ALL ( 'Table' ), MONTH ( 'Table'[Customer creation date] ) = 1 )
)

 

MEASURE =
CALCULATE (
    COUNT ( 'Table'[Customer ID] ),
    FILTER (
        ALL ( 'Table' ),
        MONTH ( 'Table'[Customer creation date] ) = 1
            && MONTH ( 'Table'[Order date] ) = MONTH ( MAX ( 'DAX DateTable'[Date] ) )
    )
)

 

Measure 2 = 
DIVIDE('Table'[MEASURE],'Table'[CustomersCreated])

vkaiyuemsft_2-1726800321721.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

 

dharmendars007
Memorable Member
Memorable Member

Hello @Naveen29 , 

 

Can you please elaborate the logic you are to build in this table and expected result, this will help us to check further on the query..

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

@dharmendars007  - There are new customers created everymonth , how they were purchasing after that. Example : If customer A created in Jan,2024 and how the same customer purchasing . It is ideally understand pattern of purchasing % vs number of customers created.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.