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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TimK
Helper III
Helper III

Help with dates and totals

I am having great problems!

 

I have some sample data:

 

Product01/01/202301/02/202301/03/202301/04/202301/05/202301/06/202301/07/202301/08/202301/09/202301/10/202301/11/202301/12/202301/01/202401/02/2024
A1255223322 33  22    
B1159 333321222      
A 222335 2113      
A      22 2489211  
A 2236 92233 3333
B 5822885       

 

Basically I am after a table that will then give me for each Product, the totals per month such as this:

 

Product01/01/202301/02/202301/03/202301/04/202301/05/202301/06/202301/07/202301/08/202301/09/202301/10/202301/11/202301/12/202301/01/202401/02/2024
A129981683146862711124433
B111172354129722000000

 

And then finally, a table that gives me the maximum value, and the corresponding date:

ProductMax ValueDate
A11101/10/2023
B11701/02/2023

 

Grateful for any help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @TimK ,

 

please using the following sytnax :

 

suma&b = SUM('Table (2)'[Value])

Table 2 = SUMMARIZE('Table (2)','Table (2)'[product],'Table (2)'[Attribute],"sum",[suma&b])

max = CALCULATE(MAX('Table 2'[sum]),FILTER(ALL('Table 2'),'Table 2'[product]=SELECTEDVALUE('Table 2'[product])))

 

and you can get the following result:

vmengzhumsft_0-1660901208391.png

This is my testing PBIX file ,you can refer to it for better understanding.

 

Best regards, 

Community Support Team Selina zhu 

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

1 REPLY 1
Anonymous
Not applicable

Hi @TimK ,

 

please using the following sytnax :

 

suma&b = SUM('Table (2)'[Value])

Table 2 = SUMMARIZE('Table (2)','Table (2)'[product],'Table (2)'[Attribute],"sum",[suma&b])

max = CALCULATE(MAX('Table 2'[sum]),FILTER(ALL('Table 2'),'Table 2'[product]=SELECTEDVALUE('Table 2'[product])))

 

and you can get the following result:

vmengzhumsft_0-1660901208391.png

This is my testing PBIX file ,you can refer to it for better understanding.

 

Best regards, 

Community Support Team Selina zhu 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.

Top Solution Authors
Top Kudoed Authors