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! Learn more

Reply
actt
New Member

Calculate % of Gran Total per Week

Good morning,

I would like to calculate the % of Gran Total (per week) for the Intake. I tried to use the powerbi pre-filled calculation but it's not working when we have more than 1 week. So I would like to have a new column with the % of gran total (1% to 100%) for each week.

Anyone can please support? Thanks!!

 

actt_0-1678354965909.png

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @actt ,

 

Based on your description, I have created  a simple sample:

vjianbolimsft_1-1678674028474.png

vjianbolimsft_2-1678674038727.png

vjianbolimsft_3-1678674100534.png

Please try:

GT% = 
var _a = SUM(FactTable[Intake])
var _b = CALCULATE(SUM(FactTable[Intake]),ALLEXCEPT(DimDate,DimDate[Week]))
return DIVIDE(_a,_b)

Final output:

vjianbolimsft_0-1678673979212.png

Best Regards,

Jianbo Li

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
v-jianboli-msft
Community Support
Community Support

Hi @actt ,

 

Based on your description, I have created  a simple sample:

vjianbolimsft_1-1678674028474.png

vjianbolimsft_2-1678674038727.png

vjianbolimsft_3-1678674100534.png

Please try:

GT% = 
var _a = SUM(FactTable[Intake])
var _b = CALCULATE(SUM(FactTable[Intake]),ALLEXCEPT(DimDate,DimDate[Week]))
return DIVIDE(_a,_b)

Final output:

vjianbolimsft_0-1678673979212.png

Best Regards,

Jianbo Li

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

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.

Top Solution Authors