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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
rajivsha
Frequent Visitor

Total Sum of Sale based on Specific period

I have this dataset where each account id has a different year (12 month period). For example CI-0018787 period is Apr to Mar while CI-0051871 has a period of Jan to Dec. I would like to calculate the total sale for each account id based on the respective period. Can anyone guide me how to do it?

rajivsha_0-1740481684560.png

Account IDSale DateSaleStart DateEnd Date
CI-00187871-Jan-2341,418,7791-Apr-2131-Mar-25
CI-00187871-Feb-2336,704,2481-Apr-2131-Mar-25
CI-00187871-Mar-2360,652,1471-Apr-2131-Mar-25
CI-00187871-Apr-2384,240,7871-Apr-2131-Mar-25
CI-00187871-May-2385,992,1241-Apr-2131-Mar-25
CI-00187871-Jun-2384,459,1781-Apr-2131-Mar-25
CI-00187871-Jul-2386,915,3321-Apr-2131-Mar-25
CI-00187871-Aug-2387,654,2801-Apr-2131-Mar-25
CI-00187871-Sep-2350,740,6361-Apr-2131-Mar-25
CI-00187871-Oct-2347,635,0711-Apr-2131-Mar-25
CI-00187871-Nov-2347,458,9721-Apr-2131-Mar-25
CI-00187871-Dec-2347,479,2721-Apr-2131-Mar-25
CI-00187871-Jan-2448,588,8761-Apr-2131-Mar-25
CI-00187871-Feb-2446,267,7321-Apr-2131-Mar-25
CI-00187871-Mar-2449,126,9091-Apr-2131-Mar-25
CI-00187871-Apr-2443,892,4821-Apr-2131-Mar-25
CI-00187871-May-2445,180,9811-Apr-2131-Mar-25
CI-00187871-Jun-2447,906,9421-Apr-2131-Mar-25
CI-00187871-Jul-2445,501,3321-Apr-2131-Mar-25
CI-00187871-Aug-2448,350,9461-Apr-2131-Mar-25
CI-00187871-Sep-2445,853,8281-Apr-2131-Mar-25
CI-00187871-Oct-2445,997,0161-Apr-2131-Mar-25
CI-00187871-Nov-2447,830,5671-Apr-2131-Mar-25
CI-00187871-Dec-2446,168,2831-Apr-2131-Mar-25
CI-00187871-Jan-2542,775,9241-Apr-2131-Mar-25
CI-00518711-Jan-23680,5281-Jan-2531-Dec-29
CI-00518711-Feb-23675,6681-Jan-2531-Dec-29
CI-00518711-Mar-23739,0441-Jan-2531-Dec-29
CI-00518711-Apr-23686,3571-Jan-2531-Dec-29
CI-00518711-May-23749,6201-Jan-2531-Dec-29
CI-00518711-Jun-23694,8121-Jan-2531-Dec-29
CI-00518711-Jul-23706,5851-Jan-2531-Dec-29
CI-00518711-Aug-23655,1041-Jan-2531-Dec-29
CI-00518711-Sep-23595,0671-Jan-2531-Dec-29
CI-00518711-Oct-23591,0661-Jan-2531-Dec-29
CI-00518711-Nov-23463,2611-Jan-2531-Dec-29
CI-00518711-Dec-23536,7691-Jan-2531-Dec-29
CI-00518711-Jan-24825,9671-Jan-2531-Dec-29
CI-00518711-Feb-24823,5411-Jan-2531-Dec-29
CI-00518711-Mar-24852,4001-Jan-2531-Dec-29
CI-00518711-Apr-24794,4651-Jan-2531-Dec-29
CI-00518711-May-24769,7371-Jan-2531-Dec-29
CI-00518711-Jun-24733,7351-Jan-2531-Dec-29
CI-00518711-Jul-24723,0321-Jan-2531-Dec-29
CI-00518711-Aug-24680,2281-Jan-2531-Dec-29
CI-00518711-Sep-24631,1301-Jan-2531-Dec-29
CI-00518711-Oct-24608,4281-Jan-2531-Dec-29
CI-00518711-Nov-24578,6341-Jan-2531-Dec-29
CI-00518711-Dec-24596,0701-Jan-2531-Dec-29
CI-00518711-Jan-25698,6701-Jan-2531-Dec-29

 

1 ACCEPTED SOLUTION
BIswajit_Das
Impactful Individual
Impactful Individual

Hello @rajivsha 
Please follow the below attached file to get your required result.

Here in the file there's two calculated column created to calculated result column.
Try this out with your data to verify the calculation is working properly or not from your end and if you have any doubts message me.
Thanks & Regards ...

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @rajivsha ,

 

I think you can create a Calendar table with Fiscal Year to help calculation.

Calendar = ADDCOLUMNS(CALENDARAUTO(),"Year",YEAR([Date]),"Month",MONTH([Date]),"Fiscal Year",IF(MONTH([Date])>=4,YEAR([Date])+1,YEAR([Date])))

Relationship:

vrzhoumsft_0-1740555635372.png

Then use [Fiscal Year] column to create the visual.

vrzhoumsft_1-1740555656135.png

 

Best Regards,
Rico Zhou

 

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

 

 

Thanks Rico but this doesn't meet my exact requirement. The fiscal year is different for each account id.

BIswajit_Das
Impactful Individual
Impactful Individual

Hello @rajivsha 
Please follow the below attached file to get your required result.

Here in the file there's two calculated column created to calculated result column.
Try this out with your data to verify the calculation is working properly or not from your end and if you have any doubts message me.
Thanks & Regards ...

Thanks. This seems to be working for my dataset. I will check this with complete dataset I have.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.