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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

summary table using dax

Hi experts,

I want to create a summary table like below, need to count customers without sale also.

My model is having customer master , calendar table and sales table

 

Customer IDFinancial YearMonthMax(Sale Date)
12022Aug25-08-2022
12022Sep30-09-2022
12022Oct22-10-2022

 

Please help

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

 

see the calculated table in the pbi file here below:

 

https://1drv.ms/u/s!Aj45jbu0mDVJiHEv6z2y8SH0EZsE?e=w7Pgir

 

If this 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
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

 

see the calculated table in the pbi file here below:

 

https://1drv.ms/u/s!Aj45jbu0mDVJiHEv6z2y8SH0EZsE?e=w7Pgir

 

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

mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

 

try this:

ADDCOLUMNS(

   SUMMARIZE('Sales',

                        'Customer'[Customer ID],

                        'Calendar'[Financial Year],

                        'Calendar'[Month]

                   ),

      "Max (Sale Date)",MAX('Sales'[Order Date])

)

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

Anonymous
Not applicable

Hi @mangaus1111 ,
I tried below queries, in first case it will always return max sale date, in second case, the query will omit customers without sales.

 
 ADDCOLUMNS(
    SUMMARIZE('SALES_DASHBOARD',
                         'ACX_CUSTMASTER_BI'[CUSTOMER_CODE],
                         'Calendar'[FISCAL YEAR],
                         'Calendar'[MONTH NAME]
                    ),
       "Max (Sale Date)",MAX('SALES_DASHBOARD'[INVOICE_DATE])
)
 
SUMMARIZE('SALES_DASHBOARD',
                        'ACX_CUSTMASTER_BI'[CUSTOMER_CODE],
                        'Calendar'[FISCAL YEAR],
                        'Calendar'[MONTH NAME],
                        "Max (Sale Date)",MAX('SALES_DASHBOARD'[INVOICE_DATE])
                   )

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.